From ebe3f0a0cc389b8c290015f68c9226ab0b9fbbde Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Mon, 25 Feb 2019 20:48:42 +0100 Subject: ui: move syntaxedit to sub-package This speeds up compilation time considerably by not needing to invoke cgo for changes in the main UI. Signed-off-by: Jason A. Donenfeld --- ui/syntax/syntaxedit.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 ui/syntax/syntaxedit.h (limited to 'ui/syntax/syntaxedit.h') diff --git a/ui/syntax/syntaxedit.h b/ui/syntax/syntaxedit.h new file mode 100644 index 00000000..12815278 --- /dev/null +++ b/ui/syntax/syntaxedit.h @@ -0,0 +1,23 @@ +/* SPDX-License-Identifier: MIT + * + * Copyright (C) 2019 WireGuard LLC. All Rights Reserved. + */ + +#ifndef SYNTAXEDIT_H +#define SYNTAXEDIT_H + +#include +#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) + +/* The old MFC reflection trick. */ +#define WM_REFLECT (WM_USER + 0x1C00) + +#define SE_PRIVATE_KEY (WM_USER + 0x3100) + +extern bool register_syntax_edit(void); + +#endif -- cgit v1.2.3-59-g8ed1b