annotate R/scratch/win32.R @ 54:918dab7a6606

- added callback support (comes with some bigger refactoring) - allow CPython's Py{CObject,Capsule} to be used as 'p'ointers
author Tassilo Philipp
date Tue, 02 Feb 2021 20:42:02 +0100
parents 0cfcc391201f
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
1 # ----------------------------------------------------------------------------
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
2 # constants
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
3
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
4 CS_BYTEALIGNCLIENT = 4096
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
5 CS_BYTEALIGNWINDOW = 8192
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
6 CS_CLASSDC = 64
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
7 CS_DBLCLKS = 8
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
8 CS_DELETE_TRANSFORM = 0x00000003
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
9 CS_DISABLE = 0x00000002
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
10 CS_ENABLE = 0x00000001
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
11 CS_GLOBALCLASS = 16384
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
12 CS_HREDRAW = 2
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
13 CS_IME = 0x10000
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
14 CS_INSERTCHAR = 0x2000
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
15 CS_KEYCVTWINDOW = 4
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
16 CS_NOCLOSE = 512
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
17 CS_NOKEYCVT = 256
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
18 CS_NOMOVECARET = 0x4000
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
19 CS_OWNDC = 32
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
20 CS_PARENTDC = 128
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
21 CS_SAVEBITS = 2048
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
22 CS_VREDRAW = 1
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
23 WM_USER = 1024
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
24 WM_ACTIVATE = 6
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
25 WM_ACTIVATEAPP = 28
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
26 WM_AFXFIRST = 864
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
27 WM_AFXLAST = 895
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
28 WM_APP = 32768
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
29 WM_ASKCBFORMATNAME = 780
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
30 WM_CANCELJOURNAL = 75
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
31 WM_CANCELMODE = 31
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
32 WM_CAPTURECHANGED = 533
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
33 WM_CHANGECBCHAIN = 781
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
34 WM_CHAR = 258
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
35 WM_CHARTOITEM = 47
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
36 WM_CHILDACTIVATE = 34
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
37 WM_CHOOSEFONT_GETLOGFONT = (WM_USER+1)
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
38 WM_CHOOSEFONT_SETFLAGS = (WM_USER+102)
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
39 WM_CHOOSEFONT_SETLOGFONT = (WM_USER+101)
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
40 WM_CLEAR = 771
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
41 WM_CLOSE = 16
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
42 WM_COMMAND = 273
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
43 WM_COMMNOTIFY = 68
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
44 WM_COMPACTING = 65
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
45 WM_COMPAREITEM = 57
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
46 WM_CONTEXTMENU = 123
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
47 WM_CONVERTREQUESTEX = 0x108
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
48 WM_COPY = 769
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
49 WM_COPYDATA = 74
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
50 WM_CREATE = 1
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
51 WM_CTLCOLORBTN = 309
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
52 WM_CTLCOLORDLG = 310
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
53 WM_CTLCOLOREDIT = 307
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
54 WM_CTLCOLORLISTBOX = 308
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
55 WM_CTLCOLORMSGBOX = 306
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
56 WM_CTLCOLORSCROLLBAR = 311
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
57 WM_CTLCOLORSTATIC = 312
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
58 WM_CUT = 768
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
59 WM_DDE_FIRST = 0x03E0
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
60 WM_DDE_ACK = (WM_DDE_FIRST+4)
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
61 WM_DDE_ADVISE = (WM_DDE_FIRST+2)
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
62 WM_DDE_DATA = (WM_DDE_FIRST+5)
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
63 WM_DDE_EXECUTE = (WM_DDE_FIRST+8)
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
64 WM_DDE_INITIATE = (WM_DDE_FIRST)
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
65 WM_DDE_LAST = (WM_DDE_FIRST+8)
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
66 WM_DDE_POKE = (WM_DDE_FIRST+7)
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
67 WM_DDE_REQUEST = (WM_DDE_FIRST+6)
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
68 WM_DDE_TERMINATE = (WM_DDE_FIRST+1)
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
69 WM_DDE_UNADVISE = (WM_DDE_FIRST+3)
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
70 WM_DEADCHAR = 259
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
71 WM_DELETEITEM = 45
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
72 WM_DESTROY = 2
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
73 WM_DESTROYCLIPBOARD = 775
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
74 WM_DEVICECHANGE = 537
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
75 WM_DEVMODECHANGE = 27
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
76 WM_DISPLAYCHANGE = 126
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
77 WM_DRAWCLIPBOARD = 776
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
78 WM_DRAWITEM = 43
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
79 WM_DROPFILES = 563
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
80 WM_ENABLE = 10
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
81 WM_ENDSESSION = 22
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
82 WM_ENTERIDLE = 289
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
83 WM_ENTERMENULOOP = 529
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
84 WM_ENTERSIZEMOVE = 561
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
85 WM_ERASEBKGND = 20
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
86 WM_EXITMENULOOP = 530
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
87 WM_EXITSIZEMOVE = 562
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
88 WM_FONTCHANGE = 29
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
89 WM_GETDLGCODE = 135
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
90 WM_GETFONT = 49
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
91 WM_GETHOTKEY = 51
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
92 WM_GETICON = 127
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
93 WM_GETMINMAXINFO = 36
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
94 WM_GETTEXT = 13
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
95 WM_GETTEXTLENGTH = 14
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
96 WM_HANDHELDFIRST = 856
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
97 WM_HANDHELDLAST = 863
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
98 WM_HELP = 83
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
99 WM_HOTKEY = 786
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
100 WM_HSCROLL = 276
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
101 WM_HSCROLLCLIPBOARD = 782
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
102 WM_ICONERASEBKGND = 39
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
103 WM_IME_CHAR = 0x286
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
104 WM_IME_COMPOSITION = 0x10F
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
105 WM_IME_COMPOSITIONFULL = 0x284
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
106 WM_IME_CONTROL = 0x283
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
107 WM_IME_ENDCOMPOSITION = 0x10E
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
108 WM_IME_KEYDOWN = 0x290
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
109 WM_IME_KEYLAST = 0x10F
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
110 WM_IME_KEYUP = 0x291
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
111 WM_IME_NOTIFY = 0x282
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
112 WM_IME_SELECT = 0x285
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
113 WM_IME_SETCONTEXT = 0x281
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
114 WM_IME_STARTCOMPOSITION = 0x10D
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
115 WM_INITDIALOG = 272
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
116 WM_INITMENU = 278
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
117 WM_INITMENUPOPUP = 279
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
118 WM_INPUTLANGCHANGE = 81
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
119 WM_INPUTLANGCHANGEREQUEST = 80
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
120 WM_KEYDOWN = 256
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
121 WM_KEYFIRST = 256
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
122 WM_KEYLAST = 264
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
123 WM_KEYUP = 257
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
124 WM_KILLFOCUS = 8
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
125 WM_LBUTTONDBLCLK = 515
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
126 WM_LBUTTONDOWN = 513
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
127 WM_LBUTTONUP = 514
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
128 WM_MBUTTONDBLCLK = 521
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
129 WM_MBUTTONDOWN = 519
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
130 WM_MBUTTONUP = 520
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
131 WM_MDIACTIVATE = 546
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
132 WM_MDICASCADE = 551
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
133 WM_MDICREATE = 544
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
134 WM_MDIDESTROY = 545
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
135 WM_MDIGETACTIVE = 553
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
136 WM_MDIICONARRANGE = 552
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
137 WM_MDIMAXIMIZE = 549
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
138 WM_MDINEXT = 548
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
139 WM_MDIREFRESHMENU = 564
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
140 WM_MDIRESTORE = 547
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
141 WM_MDISETMENU = 560
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
142 WM_MDITILE = 550
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
143 WM_MEASUREITEM = 44
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
144 WM_MENUCHAR = 288
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
145 WM_MENUSELECT = 287
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
146 WM_MOUSEACTIVATE = 33
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
147 WM_MOUSEFIRST = 512
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
148 WM_MOUSEHOVER = 0x2A1
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
149 WM_MOUSELAST = 522
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
150 WM_MOUSELEAVE = 0x2A3
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
151 WM_MOUSEMOVE = 512
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
152 WM_MOUSEWHEEL = 522
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
153 WM_MOVE = 3
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
154 WM_MOVING = 534
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
155 WM_NCACTIVATE = 134
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
156 WM_NCCALCSIZE = 131
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
157 WM_NCCREATE = 129
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
158 WM_NCDESTROY = 130
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
159 WM_NCHITTEST = 132
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
160 WM_NCLBUTTONDBLCLK = 163
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
161 WM_NCLBUTTONDOWN = 161
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
162 WM_NCLBUTTONUP = 162
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
163 WM_NCMBUTTONDBLCLK = 169
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
164 WM_NCMBUTTONDOWN = 167
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
165 WM_NCMBUTTONUP = 168
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
166 WM_NCMOUSEMOVE = 160
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
167 WM_NCPAINT = 133
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
168 WM_NCRBUTTONDBLCLK = 166
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
169 WM_NCRBUTTONDOWN = 164
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
170 WM_NCRBUTTONUP = 165
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
171 WM_NEXTDLGCTL = 40
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
172 WM_NEXTMENU = 531
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
173 WM_NOTIFY = 78
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
174 WM_NOTIFYFORMAT = 85
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
175 WM_NULL = 0
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
176 WM_PAINT = 15
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
177 WM_PAINTCLIPBOARD = 777
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
178 WM_PAINTICON = 38
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
179 WM_PALETTECHANGED = 785
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
180 WM_PALETTEISCHANGING = 784
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
181 WM_PARENTNOTIFY = 528
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
182 WM_PASTE = 770
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
183 WM_PENWINFIRST = 896
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
184 WM_PENWINLAST = 911
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
185 WM_POWER = 72
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
186 WM_POWERBROADCAST = 536
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
187 WM_PRINT = 791
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
188 WM_PRINTCLIENT = 792
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
189 WM_PSD_ENVSTAMPRECT = (WM_USER+5)
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
190 WM_PSD_FULLPAGERECT = (WM_USER+1)
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
191 WM_PSD_GREEKTEXTRECT = (WM_USER+4)
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
192 WM_PSD_MARGINRECT = (WM_USER+3)
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
193 WM_PSD_MINMARGINRECT = (WM_USER+2)
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
194 WM_PSD_PAGESETUPDLG = WM_USER
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
195 WM_PSD_YAFULLPAGERECT = (WM_USER+6)
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
196 WM_QUERYDRAGICON = 55
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
197 WM_QUERYENDSESSION = 17
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
198 WM_QUERYNEWPALETTE = 783
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
199 WM_QUERYOPEN = 19
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
200 WM_QUEUESYNC = 35
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
201 WM_QUIT = 18
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
202 WM_RBUTTONDBLCLK = 518
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
203 WM_RBUTTONDOWN = 516
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
204 WM_RBUTTONUP = 517
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
205 WM_RENDERALLFORMATS = 774
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
206 WM_RENDERFORMAT = 773
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
207 WM_SETCURSOR = 32
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
208 WM_SETFOCUS = 7
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
209 WM_SETFONT = 48
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
210 WM_SETHOTKEY = 50
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
211 WM_SETICON = 128
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
212 WM_SETREDRAW = 11
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
213 WM_SETTEXT = 12
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
214 WM_SETTINGCHANGE = 26
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
215 WM_SHOWWINDOW = 24
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
216 WM_SIZE = 5
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
217 WM_SIZECLIPBOARD = 779
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
218 WM_SIZING = 532
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
219 WM_SPOOLERSTATUS = 42
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
220 WM_STYLECHANGED = 125
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
221 WM_STYLECHANGING = 124
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
222 WM_SYNCPAINT = 136
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
223 WM_SYSCHAR = 262
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
224 WM_SYSCOLORCHANGE = 21
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
225 WM_SYSCOMMAND = 274
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
226 WM_SYSDEADCHAR = 263
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
227 WM_SYSKEYDOWN = 260
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
228 WM_SYSKEYUP = 261
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
229 WM_TCARD = 82
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
230 WM_THEMECHANGED = 794
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
231 WM_TIMECHANGE = 30
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
232 WM_TIMER = 275
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
233 WM_UNDO = 772
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
234 WM_USERCHANGED = 84
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
235 WM_VKEYTOITEM = 46
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
236 WM_VSCROLL = 277
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
237 WM_VSCROLLCLIPBOARD = 778
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
238 WM_WINDOWPOSCHANGED = 71
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
239 WM_WINDOWPOSCHANGING = 70
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
240 WM_WININICHANGE = 26
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
241 WS_ACTIVECAPTION = 0x00000001
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
242 WS_BORDER = 0x800000
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
243 WS_CAPTION = 0xc00000
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
244 WS_CHILD = 0x40000000
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
245 WS_CHILDWINDOW = 0x40000000
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
246 WS_CLIPCHILDREN = 0x2000000
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
247 WS_CLIPSIBLINGS = 0x4000000
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
248 WS_DISABLED = 0x8000000
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
249 WS_DLGFRAME = 0x400000
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
250 WS_EX_ACCEPTFILES = 16
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
251 WS_EX_APPWINDOW = 0x40000
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
252 WS_EX_CLIENTEDGE = 512
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
253 WS_EX_COMPOSITED = 0x2000000
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
254 WS_EX_CONTEXTHELP = 0x400
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
255 WS_EX_CONTROLPARENT = 0x10000
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
256 WS_EX_DLGMODALFRAME = 1
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
257 WS_EX_LAYERED = 0x80000
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
258 WS_EX_LAYOUTRTL = 0x400000
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
259 WS_EX_LEFT = 0
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
260 WS_EX_LEFTSCROLLBAR = 0x4000
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
261 WS_EX_LTRREADING = 0
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
262 WS_EX_MDICHILD = 64
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
263 WS_EX_NOACTIVATE = 0x8000000
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
264 WS_EX_NOINHERITLAYOUT = 0x100000
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
265 WS_EX_NOPARENTNOTIFY = 4
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
266 WS_EX_OVERLAPPEDWINDOW = 0x300
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
267 WS_EX_PALETTEWINDOW = 0x188
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
268 WS_EX_RIGHT = 0x1000
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
269 WS_EX_RIGHTSCROLLBAR = 0
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
270 WS_EX_RTLREADING = 0x2000
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
271 WS_EX_STATICEDGE = 0x20000
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
272 WS_EX_TOOLWINDOW = 128
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
273 WS_EX_TOPMOST = 8
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
274 WS_EX_TRANSPARENT = 32
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
275 WS_EX_WINDOWEDGE = 256
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
276 WS_GROUP = 0x20000
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
277 WS_HSCROLL = 0x100000
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
278 WS_ICONIC = 0x20000000
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
279 WS_MAXIMIZE = 0x1000000
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
280 WS_MAXIMIZEBOX = 0x10000
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
281 WS_MINIMIZE = 0x20000000
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
282 WS_MINIMIZEBOX = 0x20000
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
283 WS_OVERLAPPED = 0
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
284 WS_OVERLAPPEDWINDOW = 0xcf0000
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
285 WS_POPUP = 0x80000000
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
286 WS_POPUPWINDOW = 0x80880000
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
287 WS_SIZEBOX = 0x40000
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
288 WS_SYSMENU = 0x80000
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
289 WS_TABSTOP = 0x10000
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
290 WS_THICKFRAME = 0x40000
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
291 WS_TILED = 0
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
292 WS_TILEDWINDOW = 0xcf0000
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
293 WS_VISIBLE = 0x10000000
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
294 WS_VSCROLL = 0x200000
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
295 SM_ARRANGE = 56
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
296 SM_CLEANBOOT = 67
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
297 SM_CMETRICS = 88
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
298 SM_CMONITORS = 80
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
299 SM_CMOUSEBUTTONS = 43
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
300 SM_CXBORDER = 5
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
301 SM_CXCURSOR = 13
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
302 SM_CXDLGFRAME = 7
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
303 SM_CXDOUBLECLK = 36
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
304 SM_CXDRAG = 68
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
305 SM_CXEDGE = 45
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
306 SM_CXFIXEDFRAME = 7
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
307 SM_CXFOCUSBORDER = 83
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
308 SM_CXFRAME = 32
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
309 SM_CXFULLSCREEN = 16
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
310 SM_CXHSCROLL = 21
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
311 SM_CXHTHUMB = 10
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
312 SM_CXICON = 11
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
313 SM_CXICONSPACING = 38
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
314 SM_CXMAXIMIZED = 61
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
315 SM_CXMAXTRACK = 59
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
316 SM_CXMENUCHECK = 71
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
317 SM_CXMENUSIZE = 54
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
318 SM_CXMIN = 28
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
319 SM_CXMINIMIZED = 57
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
320 SM_CXMINSPACING = 47
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
321 SM_CXMINTRACK = 34
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
322 SM_CXSCREEN = 0
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
323 SM_CXSIZE = 30
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
324 SM_CXSIZEFRAME = 32
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
325 SM_CXSMICON = 49
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
326 SM_CXSMSIZE = 52
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
327 SM_CXVIRTUALSCREEN = 78
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
328 SM_CXVSCROLL = 2
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
329 SM_CYBORDER = 6
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
330 SM_CYCAPTION = 4
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
331 SM_CYCURSOR = 14
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
332 SM_CYDLGFRAME = 8
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
333 SM_CYDOUBLECLK = 37
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
334 SM_CYDRAG = 69
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
335 SM_CYEDGE = 46
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
336 SM_CYFIXEDFRAME = 8
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
337 SM_CYFOCUSBORDER = 84
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
338 SM_CYFRAME = 33
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
339 SM_CYFULLSCREEN = 17
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
340 SM_CYHSCROLL = 3
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
341 SM_CYICON = 12
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
342 SM_CYICONSPACING = 39
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
343 SM_CYKANJIWINDOW = 18
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
344 SM_CYMAXIMIZED = 62
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
345 SM_CYMAXTRACK = 60
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
346 SM_CYMENU = 15
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
347 SM_CYMENUCHECK = 72
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
348 SM_CYMENUSIZE = 55
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
349 SM_CYMIN = 29
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
350 SM_CYMINIMIZED = 58
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
351 SM_CYMINSPACING = 48
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
352 SM_CYMINTRACK = 35
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
353 SM_CYSCREEN = 1
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
354 SM_CYSIZE = 31
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
355 SM_CYSIZEFRAME = 33
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
356 SM_CYSMCAPTION = 51
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
357 SM_CYSMICON = 50
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
358 SM_CYSMSIZE = 53
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
359 SM_CYVIRTUALSCREEN = 79
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
360 SM_CYVSCROLL = 20
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
361 SM_CYVTHUMB = 9
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
362 SM_DBCSENABLED = 42
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
363 SM_DEBUG = 22
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
364 SM_IMMENABLED = 82
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
365 SM_MEDIACENTER = 87
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
366 SM_MENUDROPALIGNMENT = 40
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
367 SM_MIDEASTENABLED = 74
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
368 SM_MOUSEPRESENT = 19
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
369 SM_MOUSEWHEELPRESENT = 75
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
370 SM_NETWORK = 63
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
371 SM_PENWINDOWS = 41
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
372 SM_REMOTESESSION = 0X1000
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
373 SM_RESERVED1 = 24
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
374 SM_RESERVED2 = 25
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
375 SM_RESERVED3 = 26
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
376 SM_RESERVED4 = 27
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
377 SM_SAMEDISPLAYFORMAT = 81
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
378 SM_SECURE = 44
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
379 SM_SERVERR2 = 89
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
380 SM_SHOWSOUNDS = 70
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
381 SM_SLOWMACHINE = 73
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
382 SM_STARTER = 88
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
383 SM_SWAPBUTTON = 23
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
384 SM_TABLETPC = 86
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
385 SM_XVIRTUALSCREEN = 76
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
386 SM_YVIRTUALSCREEN = 77
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
387 AF_12844 = 25
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
388 AF_APPLETALK = 16
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
389 AF_ATM = 22
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
390 AF_BAN = 21
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
391 AF_CCITT = 10
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
392 AF_CHAOS = 5
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
393 AF_CLUSTER = 24
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
394 AF_DATAKIT = 9
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
395 AF_DECnet = 12
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
396 AF_DLI = 13
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
397 AF_ECMA = 8
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
398 AF_FIREFOX = 19
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
399 AF_HYLINK = 15
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
400 AF_IMPLINK = 3
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
401 AF_INET = 2
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
402 AF_INET6 = 23
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
403 AF_IPX = 6
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
404 AF_IRDA = 26
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
405 AF_ISO = 7
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
406 AF_LAT = 14
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
407 AF_MAX = 29
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
408 AF_NETBIOS = 17
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
409 AF_NETDES = 28
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
410 AF_NS = 6
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
411 AF_OSI = AF_ISO
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
412 AF_PUP = 4
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
413 AF_SNA = 11
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
414 AF_UNIX = 1
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
415 AF_UNKNOWN1 = 20
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
416 AF_UNSPEC = 0
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
417 AF_VOICEVIEW = 18
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
418 COLOR_3DDKSHADOW = 21
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
419 COLOR_3DFACE = 15
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
420 COLOR_3DHIGHLIGHT = 20
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
421 COLOR_3DHILIGHT = 20
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
422 COLOR_3DLIGHT = 22
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
423 COLOR_3DSHADOW = 16
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
424 COLOR_ACTIVEBORDER = 10
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
425 COLOR_ACTIVECAPTION = 2
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
426 COLOR_ADJ_MAX = 100
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
427 COLOR_ADJ_MIN = (-100)
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
428 COLOR_APPWORKSPACE = 12
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
429 COLOR_BACKGROUND = 1
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
430 COLOR_BTNFACE = 15
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
431 COLOR_BTNHIGHLIGHT = 20
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
432 COLOR_BTNHILIGHT = 20
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
433 COLOR_BTNSHADOW = 16
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
434 COLOR_BTNTEXT = 18
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
435 COLOR_CAPTIONTEXT = 9
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
436 COLOR_DESKTOP = 1
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
437 COLOR_GRADIENTACTIVECAPTION = 27
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
438 COLOR_GRADIENTINACTIVECAPTION = 28
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
439 COLOR_GRAYTEXT = 17
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
440 COLOR_HIGHLIGHT = 13
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
441 COLOR_HIGHLIGHTTEXT = 14
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
442 COLOR_HOTLIGHT = 26
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
443 COLOR_INACTIVEBORDER = 11
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
444 COLOR_INACTIVECAPTION = 3
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
445 COLOR_INACTIVECAPTIONTEXT = 19
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
446 COLOR_INFOBK = 24
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
447 COLOR_INFOTEXT = 23
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
448 COLOR_MENU = 4
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
449 COLOR_MENUTEXT = 7
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
450 COLOR_SCROLLBAR = 0
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
451 COLOR_WINDOW = 5
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
452 COLOR_WINDOWFRAME = 6
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
453 COLOR_WINDOWTEXT = 8
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
454 # ----------------------------------------------------------------------------
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
455 # types
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
456
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
457 types <- c(
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
458 UINT='i',
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
459 WNDPROC='p',
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
460 int='i',
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
461 HINSTANCE='p',
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
462 HICON='p',
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
463 HCURSOR='p',
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
464 HBRUSH='p',
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
465 LPCTSTR='S',
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
466 LPCTSTR='S',
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
467 void='v'
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
468 )
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
469
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
470 # ----------------------------------------------------------------------------
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
471 # structures
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
472
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
473 WNDCLASSEXA <- structinfo("
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
474 UINT cbSize;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
475 UINT style;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
476 WNDPROC lpfnWndProc;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
477 int cbClsExtra;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
478 int cbWndExtra;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
479 HINSTANCE hInstance;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
480 HICON hIcon;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
481 HCURSOR hCursor;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
482 HBRUSH hbrBackground;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
483 LPCTSTR lpszMenuName;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
484 LPCTSTR lpszClassName;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
485 HICON hIconSm;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
486 ", types)
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
487
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
488 # ----------------------------------------------------------------------------
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
489 # functions
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
490
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
491 .kernel32 <- dynbind("kernel32","
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
492 GetTickCount()i;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
493 GetLastError()i;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
494 ",callmode="stdcall")
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
495
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
496 .user32 <- dynbind("user32","
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
497 RegisterClassExA(p)n;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
498 CreateWindowExA(iSSiiiiipppp)p;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
499 DefWindowProcA(pppp)p;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
500 ",callmode="stdcall")
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
501
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
502