]>
git.saurik.com Git - wxWidgets.git/blob - 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
21 #define EM_CANPASTE (1074)
22 #define EM_CANUNDO (198)
23 #define EM_CHARFROMPOS (215)
24 #define EM_EMPTYUNDOBUFFER (205)
25 #define EM_EXGETSEL (1076)
26 #define EM_EXLINEFROMCHAR (1078)
27 #define EM_EXSETSEL (1079)
28 #define EM_FINDTEXT (1080)
29 #define EM_FINDTEXTEX (1103)
30 #define EM_FORMATRANGE (1081)
31 #define EM_GETFIRSTVISIBLELINE (206)
32 #define EM_GETLINE (196)
33 #define EM_GETLINECOUNT (186)
34 #define EM_GETMARGINS (212)
35 #define EM_GETMODIFY (184)
36 #define EM_GETRECT (178)
37 #define EM_GETSEL (176)
38 #define EM_GETSELTEXT (1086)
39 #define EM_GETTEXTRANGE (1099)
40 #define EM_HIDESELECTION (1087)
41 #define EM_LINEFROMCHAR (201)
42 #define EM_LINEINDEX (187)
43 #define EM_LINELENGTH (193)
44 #define EM_LINESCROLL (182)
45 #define EM_POSFROMCHAR (214)
46 #define EM_REPLACESEL (194)
47 #define EM_SCROLLCARET (183)
48 #define EM_SELECTIONTYPE (1090)
49 #define EM_SETMARGINS (211)
50 #define EM_SETREADONLY (207)
51 #define EM_SETSEL (177)
55 #define WM_CLEAR (771)
58 #define WM_GETTEXT (13)
59 #define WM_GETTEXTLENGTH (14)
60 #define WM_PASTE (770)
61 #define WM_SETTEXT (12)
64 #define EN_CHANGE (768)
65 #define EN_KILLFOCUS (512)
66 #define EN_SETFOCUS (256)
68 #define EC_LEFTMARGIN 1
69 #define EC_RIGHTMARGIN 2
70 #define EC_USEFONTINFO 0xffff
76 #define VK_DOWN GDK_Down
78 #define VK_LEFT GDK_Left
79 #define VK_RIGHT GDK_Right
80 #define VK_HOME GDK_Home
81 #define VK_END GDK_End
82 #define VK_PRIOR GDK_Page_Up
83 #define VK_NEXT GDK_Page_Down
84 #define VK_DELETE GDK_Delete
85 #define VK_INSERT GDK_Insert
86 #define VK_ESCAPE GDK_Escape
87 #define VK_BACK GDK_BackSpace
88 #define VK_TAB GDK_Tab
89 #define VK_RETURN GDK_Return
90 #define VK_ADD GDK_KP_Add
91 #define VK_SUBTRACT GDK_KP_Subtract
92 #define VK_DIVIDE GDK_KP_Divide
96 #define VK_DOWN WXK_DOWN
98 #define VK_LEFT WXK_LEFT
99 #define VK_RIGHT WXK_RIGHT
100 #define VK_HOME WXK_HOME
101 #define VK_END WXK_END
102 #define VK_PRIOR WXK_PRIOR
103 #define VK_NEXT WXK_NEXT
104 #define VK_DELETE WXK_DELETE
105 #define VK_INSERT WXK_INSERT
106 #define VK_ESCAPE WXK_ESCAPE
107 #define VK_BACK WXK_BACK
108 #define VK_TAB WXK_TAB
109 #define VK_RETURN WXK_RETURN
110 #define VK_ADD WXK_ADD
111 #define VK_SUBTRACT WXK_SUBTRACT
113 #define VK_DIVIDE WXK_DIVIDE
116 #define SHIFT_PRESSED 1
117 #define LEFT_CTRL_PRESSED 2
118 #define LEFT_ALT_PRESSED 4
120 // Are these needed any more
123 #define LPDWORD (long *)
125 /* SELCHANGE structure */
126 #define SEL_EMPTY (0)
128 #define SEL_OBJECT (2)
129 #define SEL_MULTICHAR (4)
130 #define SEL_MULTIOBJECT (8)
139 /* FINDREPLACE structure */
141 #define FR_MATCHCASE (0x4)
142 #define FR_WHOLEWORD (0x2)
143 #define FR_DOWN (0x1)
179 //#define MAKELONG(a, b) ((a) | ((b) << 16))
180 //#define LOWORD(x) (x & 0xffff)
181 //#define HIWORD(x) (x >> 16)