aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ui/syntax/syntaxedit.c
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-03-02 06:29:28 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2019-03-02 07:06:07 +0100
commit67a701575721c0d2bceb4f5129033f6b2a717f05 (patch)
tree2d12c5055bdfd7b7f1219a5f14abd06ae818463c /ui/syntax/syntaxedit.c
parentgo.mod: use latest for all trusted repos while under development (diff)
downloadwireguard-windows-67a701575721c0d2bceb4f5129033f6b2a717f05.tar.xz
wireguard-windows-67a701575721c0d2bceb4f5129033f6b2a717f05.zip
syntax: flat border
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'ui/syntax/syntaxedit.c')
-rw-r--r--ui/syntax/syntaxedit.c1
1 files changed, 1 insertions, 0 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);