diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-03-02 06:29:28 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-03-02 07:06:07 +0100 |
commit | 67a701575721c0d2bceb4f5129033f6b2a717f05 (patch) | |
tree | 2d12c5055bdfd7b7f1219a5f14abd06ae818463c /ui | |
parent | go.mod: use latest for all trusted repos while under development (diff) | |
download | wireguard-windows-67a701575721c0d2bceb4f5129033f6b2a717f05.tar.xz wireguard-windows-67a701575721c0d2bceb4f5129033f6b2a717f05.zip |
syntax: flat border
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'ui')
-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) |