diff options
Diffstat (limited to 'ui/syntaxedit.h')
-rw-r--r-- | ui/syntaxedit.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/ui/syntaxedit.h b/ui/syntaxedit.h new file mode 100644 index 00000000..12815278 --- /dev/null +++ b/ui/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 <stdbool.h> +#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) + +/* 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 |