-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheditctrl.h
64 lines (48 loc) · 2.75 KB
/
editctrl.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
//***************************************************************************
// NARS2000 -- Edit Ctrl Header
//***************************************************************************
/***************************************************************************
NARS2000 -- An Experimental APL Interpreter
Copyright (C) 2006-2016 Sudley Place Software
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
***************************************************************************/
#define EM_SETPAINTHOOK 0x00BF
#define EM_SETFALLBACKFONT 0x00C0
#define GWLEC_ES 0
#define GWLEC_PAINTHOOK GWLEC_ES + 1 * sizeof (HANDLE_PTR) // Ptr to LclECPaintHook proc
#define GWLEC_HBITMAP GWLEC_PAINTHOOK + 1 * sizeof (HANDLE_PTR) // Handle of the matching caret bitmap
#define GWLEC_VKSTATE GWLEC_HBITMAP + 1 * sizeof (HANDLE_PTR) // Virtal Key state (VKSTATE struc)
#define GWLEC_EXTRA GWLEC_VKSTATE + 1 * sizeof (long) // Total # extra bytes
typedef int PAINTHOOK (HWND, HDC, int, int, LPWSTR, int, int, long, int, int, UBOOL);
typedef PAINTHOOK *LPPAINTHOOK;
#define MYWM_REDO (WM_APP + 101)
#define MYWM_SELECTALL (WM_APP + 102)
#define MYWM_KEYDOWN (WM_APP + 103)
#define MYWM_PASTE_APL (WM_APP + 104)
#define MYWM_COPY_APL (WM_APP + 105)
#define MYWM_LOCALIZE (WM_APP + 106)
#define MYWM_UNLOCALIZE (WM_APP + 107)
#define MYWM_LINE_HEIGHT (WM_APP + 108)
#define MYEM_ISLINECONT (WM_APP + 109)
#define FCN_INDENT 6 // # WCHARs for function line numbers
#define WM_REDO (WM_USER + 0)
#define GWL_ID (-12)
typedef struct tagNMEDITCTRL
{
NMHDR nmHdr; // 00: Initial struc
UINT cbSize; // 0C: Byte size of NMCARETWIDTH struc
HBITMAP hBitMap; // 10: Bitmap handle for replace mode (NULL = insert mode)
// 14: Length
} NMEDITCTRL, *LPNMEDITCTRL;
//***************************************************************************
// End of File: editctrl.h
//***************************************************************************