aboutsummaryrefslogblamecommitdiffstatshomepage
path: root/ui/syntax/syntaxedit.h
blob: 4013f32806d076c2ba5a2495f4f0eb8fb54b4a32 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12











                                                         

                                                                                                                                                     








                                         
/* 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 | 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)

#define SE_PRIVATE_KEY (WM_USER + 0x3100)

extern bool register_syntax_edit(void);

#endif