From 67a701575721c0d2bceb4f5129033f6b2a717f05 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Sat, 2 Mar 2019 06:29:28 +0100 Subject: syntax: flat border Signed-off-by: Jason A. Donenfeld --- ui/syntax/syntaxedit.c | 1 + ui/syntax/syntaxedit.h | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ui/syntax/syntaxedit.c b/ui/syntax/syntaxedit.c index 5586e9d1..f9c61957 100644 --- a/ui/syntax/syntaxedit.c +++ b/ui/syntax/syntaxedit.c @@ -227,6 +227,7 @@ static LRESULT CALLBACK child_proc(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lP switch (Msg) { case WM_CREATE: { struct syntaxedit_data *this = calloc(1, sizeof(*this)); + SetWindowLong(hWnd, GWL_EXSTYLE, GetWindowLong(hWnd, GWL_EXSTYLE) & ~WS_EX_CLIENTEDGE); assert(this); SetWindowLongPtr(hWnd, GWLP_USERDATA, (LONG_PTR)this); SendMessage(hWnd, EM_GETOLEINTERFACE, 0, (LPARAM)&this->irich); diff --git a/ui/syntax/syntaxedit.h b/ui/syntax/syntaxedit.h index 12815278..4013f328 100644 --- a/ui/syntax/syntaxedit.h +++ b/ui/syntax/syntaxedit.h @@ -10,8 +10,8 @@ #include #include -#define SYNTAXEDIT_STYLE (WS_CHILD | WS_CLIPSIBLINGS | ES_MULTILINE | WS_VISIBLE | WS_VSCROLL | WS_HSCROLL | WS_BORDER | WS_TABSTOP | ES_WANTRETURN | ES_NOOLEDRAGDROP) -#define SYNTAXEDIT_EXTSTYLE (WS_EX_CLIENTEDGE) +#define SYNTAXEDIT_STYLE (WS_CHILD | ES_MULTILINE | WS_VISIBLE | WS_VSCROLL | WS_BORDER | WS_HSCROLL | WS_TABSTOP | ES_WANTRETURN | ES_NOOLEDRAGDROP) +#define SYNTAXEDIT_EXTSTYLE (0) /* The old MFC reflection trick. */ #define WM_REFLECT (WM_USER + 0x1C00) -- cgit v1.2.3-59-g8ed1b