]>
git.saurik.com Git - wxWidgets.git/blob - contrib/src/stc/scintilla/include/WinDefs.h
1 // Scintilla source code edit control
2 // WinDefs.h - the subset of definitions from Windows needed by Scintilla for GTK+
3 // Copyright 1998-2000 by Neil Hodgson <neilh@scintilla.org>
4 // The License.txt file describes the conditions under which this software may be distributed.
10 #define WPARAM unsigned long
15 #define UINT unsigned int
20 #define EM_CANPASTE (1074)
21 #define EM_CANUNDO (198)
22 #define EM_CHARFROMPOS (215)
23 #define EM_EMPTYUNDOBUFFER (205)
24 #define EM_EXGETSEL (1076)
25 #define EM_EXLINEFROMCHAR (1078)
26 #define EM_EXSETSEL (1079)
27 #define EM_FINDTEXT (1080)
28 #define EM_FINDTEXTEX (1103)
29 #define EM_FORMATRANGE (1081)
30 #define EM_GETFIRSTVISIBLELINE (206)
31 #define EM_GETLINE (196)
32 #define EM_GETLINECOUNT (186)
33 #define EM_GETMARGINS (212)
34 #define EM_GETMODIFY (184)
35 #define EM_GETRECT (178)
36 #define EM_GETSEL (176)
37 #define EM_GETSELTEXT (1086)
38 #define EM_GETTEXTRANGE (1099)
39 #define EM_HIDESELECTION (1087)
40 #define EM_LINEFROMCHAR (201)
41 #define EM_LINEINDEX (187)
42 #define EM_LINELENGTH (193)
43 #define EM_LINESCROLL (182)
44 #define EM_POSFROMCHAR (214)
45 #define EM_REPLACESEL (194)
46 #define EM_SCROLLCARET (183)
47 #define EM_SELECTIONTYPE (1090)
48 #define EM_SETMARGINS (211)
49 #define EM_SETREADONLY (207)
50 #define EM_SETSEL (177)
54 #define WM_CLEAR (771)
55 #define WM_COMMAND (273)
58 #define WM_GETTEXT (13)
59 #define WM_GETTEXTLENGTH (14)
60 #define WM_NOTIFY (78)
61 #define WM_PASTE (770)
62 #define WM_SETTEXT (12)
65 #define EN_CHANGE (768)
66 #define EN_KILLFOCUS (512)
67 #define EN_SETFOCUS (256)
69 #define EC_LEFTMARGIN 1
70 #define EC_RIGHTMARGIN 2
71 #define EC_USEFONTINFO 0xffff
74 #define VK_DOWN GDK_Down
76 #define VK_LEFT GDK_Left
77 #define VK_RIGHT GDK_Right
78 #define VK_HOME GDK_Home
79 #define VK_END GDK_End
80 #define VK_PRIOR GDK_Page_Up
81 #define VK_NEXT GDK_Page_Down
82 #define VK_DELETE GDK_Delete
83 #define VK_INSERT GDK_Insert
84 #define VK_ESCAPE GDK_Escape
85 #define VK_BACK GDK_BackSpace
86 #define VK_TAB GDK_Tab
87 #define VK_RETURN GDK_Return
88 #define VK_ADD GDK_KP_Add
89 #define VK_SUBTRACT GDK_KP_Subtract
90 #define VK_DIVIDE GDK_KP_Divide
94 #define VK_DOWN WXK_DOWN
96 #define VK_LEFT WXK_LEFT
97 #define VK_RIGHT WXK_RIGHT
98 #define VK_HOME WXK_HOME
99 #define VK_END WXK_END
100 #define VK_PRIOR WXK_PRIOR
101 #define VK_NEXT WXK_NEXT
102 #define VK_DELETE WXK_DELETE
103 #define VK_INSERT WXK_INSERT
104 #define VK_ESCAPE WXK_ESCAPE
105 #define VK_BACK WXK_BACK
106 #define VK_TAB WXK_TAB
107 #define VK_RETURN WXK_RETURN
108 #define VK_ADD WXK_ADD
109 #define VK_SUBTRACT WXK_SUBTRACT
111 #define VK_DIVIDE WXK_DIVIDE
113 // Are these needed any more
116 #define LPDWORD (long *)
119 /* SELCHANGE structure */
120 #define SEL_EMPTY (0)
122 #define SEL_OBJECT (2)
123 #define SEL_MULTICHAR (4)
124 #define SEL_MULTIOBJECT (8)
126 /* FINDREPLACE structure */
127 #define FR_MATCHCASE (0x4)
128 #define FR_WHOLEWORD (0x2)
129 #define FR_DOWN (0x1)
131 #define SHIFT_PRESSED 1
132 #define LEFT_CTRL_PRESSED 2
133 #define LEFT_ALT_PRESSED 4
172 #define MAKELONG(a, b) ((a) | ((b) << 16))
173 #define LOWORD(x) (x & 0xffff)
174 #define HIWORD(x) (x >> 16)