diff options
Diffstat (limited to 'ui/syntax')
-rw-r--r-- | ui/syntax/syntaxedit.c | 1 | ||||
-rw-r--r-- | 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 <windows.h> #include <richedit.h> -#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) |