diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-02-25 18:48:31 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-02-28 08:05:02 +0100 |
commit | 8ddde70f2d354c9179e7434bc4a630d8acc1b370 (patch) | |
tree | 4651f4fe9984b671cfb95f2274ece6ef885d8332 /ui/syntaxedit.h | |
parent | ipc: add base of IPC (diff) | |
download | wireguard-windows-8ddde70f2d354c9179e7434bc4a630d8acc1b370.tar.xz wireguard-windows-8ddde70f2d354c9179e7434bc4a630d8acc1b370.zip |
ui: add initial sample UI for testing
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to '')
-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 |