OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [packages/] [services/] [gfx/] [mw/] [v2_0/] [include/] [microwin/] [winctl.h] - Blame information for rev 565

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 27 unneback
/* winctl.h*/
2
/*
3
 * Header file for builtin controls
4
 * This currently includes button, progressbar, listbox, edit
5
 */
6
 
7
/* entry points*/
8
int WINAPI      MwRegisterButtonControl(HINSTANCE hInstance);
9
int WINAPI      MwRegisterListboxControl(HINSTANCE hInstance);
10
int WINAPI      MwRegisterEditControl(HINSTANCE hInstance);
11
int WINAPI      MwRegisterStaticControl(HINSTANCE hInstance);
12
int WINAPI      MwRegisterProgressBarControl(HINSTANCE hInstance);
13
int WINAPI      MwRegisterComboboxControl(HINSTANCE hInstance);
14
int WINAPI      MwRegisterScrollbarControl(HINSTANCE hInstance);
15
int WINAPI      MwRegisterMEditControl(HINSTANCE hInstance);
16
 
17
/* temporarily in button.c*/
18
void WINAPI     CheckRadioButton(HWND hDlg, int nIDFirst,int nIDLast,
19
                        int nIDCheckButton);
20
 
21
/* Dialog Codes*/
22
#define DLGC_WANTARROWS     0x0001      /* Control wants arrow keys         */
23
#define DLGC_WANTTAB        0x0002      /* Control wants tab keys           */
24
#define DLGC_WANTALLKEYS    0x0004      /* Control wants all keys           */
25
#define DLGC_WANTMESSAGE    0x0004      /* Pass message to control          */
26
#define DLGC_HASSETSEL      0x0008      /* Understands EM_SETSEL message    */
27
#define DLGC_DEFPUSHBUTTON  0x0010      /* Default pushbutton               */
28
#define DLGC_UNDEFPUSHBUTTON 0x0020     /* Non-default pushbutton           */
29
#define DLGC_RADIOBUTTON    0x0040      /* Radio button                     */
30
#define DLGC_WANTCHARS      0x0080      /* Want WM_CHAR messages            */
31
#define DLGC_STATIC         0x0100      /* Static item: don't include       */
32
#define DLGC_BUTTON         0x2000      /* Button item: can be checked      */
33
 
34
/* Button Control Styles*/
35
#define BS_PUSHBUTTON       0x00000000L
36
#define BS_DEFPUSHBUTTON    0x00000001L
37
#define BS_CHECKBOX         0x00000002L
38
#define BS_AUTOCHECKBOX     0x00000003L
39
#define BS_RADIOBUTTON      0x00000004L
40
#define BS_3STATE           0x00000005L
41
#define BS_AUTO3STATE       0x00000006L
42
#define BS_GROUPBOX         0x00000007L
43
#define BS_USERBUTTON       0x00000008L
44
#define BS_AUTORADIOBUTTON  0x00000009L
45
#define BS_OWNERDRAW        0x0000000BL
46
#define BS_LEFTTEXT         0x00000020L
47
#define BS_TEXT             0x00000000L
48
#define BS_ICON             0x00000040L
49
#define BS_BITMAP           0x00000080L
50
#define BS_LEFT             0x00000100L
51
#define BS_RIGHT            0x00000200L
52
#define BS_CENTER           0x00000300L
53
#define BS_TOP              0x00000400L
54
#define BS_BOTTOM           0x00000800L
55
#define BS_VCENTER          0x00000C00L
56
#define BS_PUSHLIKE         0x00001000L
57
#define BS_MULTILINE        0x00002000L
58
#define BS_NOTIFY           0x00004000L
59
#define BS_FLAT             0x00008000L
60
#define BS_RIGHTBUTTON      BS_LEFTTEXT
61
 
62
/* User Button Notification Codes*/
63
#define BN_CLICKED          0
64
#define BN_PAINT            1
65
#define BN_HILITE           2
66
#define BN_UNHILITE         3
67
#define BN_DISABLE          4
68
#define BN_DOUBLECLICKED    5
69
#define BN_PUSHED           BN_HILITE
70
#define BN_UNPUSHED         BN_UNHILITE
71
#define BN_DBLCLK           BN_DOUBLECLICKED
72
#define BN_SETFOCUS         6
73
#define BN_KILLFOCUS        7
74
 
75
/* Button Control Messages*/
76
#define BM_GETCHECK        0x00F0
77
#define BM_SETCHECK        0x00F1
78
#define BM_GETSTATE        0x00F2
79
#define BM_SETSTATE        0x00F3
80
#define BM_SETSTYLE        0x00F4
81
#define BM_CLICK           0x00F5
82
#define BM_GETIMAGE        0x00F6
83
#define BM_SETIMAGE        0x00F7
84
 
85
#define BST_UNCHECKED      0x0000
86
#define BST_CHECKED        0x0001
87
#define BST_INDETERMINATE  0x0002
88
#define BST_PUSHED         0x0004
89
#define BST_FOCUS          0x0008
90
 
91
/* Progress Bar messages*/
92
#define PBM_SETRANGE            0xF0A0
93
#define PBM_SETSTEP             0xF0A1
94
#define PBM_SETPOS              0xF0A2
95
#define PBM_DELTAPOS            0xF0A3
96
#define PBM_STEPIT              0xF0A4
97
 
98
/* Progress Bar styles */
99
#define PBS_NOTIFY              0x0001L
100
#define PBS_VERTICAL            0x0002L
101
 
102
/* Progress Bar notification code */
103
#define PBN_REACHMAX            1
104
#define PBN_REACHMIN            2
105
 
106
/* Listbox messages*/
107
#define LB_ADDSTRING            0xF180
108
#define LB_INSERTSTRING         0xF181
109
#define LB_DELETESTRING         0xF182
110
#define LB_SELITEMRANGEEX       0xF183
111
#define LB_RESETCONTENT         0xF184
112
#define LB_SETSEL               0xF185
113
#define LB_SETCURSEL            0xF186
114
#define LB_GETSEL               0xF187
115
#define LB_GETCURSEL            0xF188
116
#define LB_GETTEXT              0xF189
117
#define LB_GETTEXTLEN           0xF18A
118
#define LB_GETCOUNT             0xF18B
119
#define LB_SELECTSTRING         0xF18C
120
#define LB_DIR                  0xF18D
121
#define LB_GETTOPINDEX          0xF18E
122
#define LB_FINDSTRING           0xF18F
123
#define LB_GETSELCOUNT          0xF190
124
#define LB_GETSELITEMS          0xF191
125
#define LB_SETTABSTOPS          0xF192
126
#define LB_GETHORIZONTALEXTENT  0xF193
127
#define LB_SETHORIZONTALEXTENT  0xF194
128
#define LB_SETCOLUMNWIDTH       0xF195
129
#define LB_ADDFILE              0xF196
130
#define LB_SETTOPINDEX          0xF197
131
#define LB_GETITEMRECT          0xF198
132
#define LB_GETITEMDATA          0xF199
133
#define LB_SETITEMDATA          0xF19A
134
#define LB_SELITEMRANGE         0xF19B
135
#define LB_SETANCHORINDEX       0xF19C
136
#define LB_GETANCHORINDEX       0xF19D
137
#define LB_SETCARETINDEX        0xF19E
138
#define LB_GETCARETINDEX        0xF19F
139
#define LB_SETITEMHEIGHT        0xF1A0
140
#define LB_GETITEMHEIGHT        0xF1A1
141
#define LB_FINDSTRINGEXACT      0xF1A2
142
#define LB_SETLOCALE            0xF1A5
143
#define LB_GETLOCALE            0xF1A6
144
#define LB_SETCOUNT             0xF1A7
145
#define LB_INITSTORAGE          0xF1A8
146
#define LB_ITEMFROMPOINT        0xF1A9
147
#define LB_SETTEXT              0xF1AA
148
#define LB_GETCHECKMARK         0xF1AB
149
#define LB_SETCHECKMARK         0xF1AC
150
#define LB_GETITEMADDDATA       0xF1AD
151
#define LB_SETITEMADDDATA       0xF1AE
152
#define LB_MSGMAX               0xF1B0
153
 
154
/* Listbox styles */
155
#define LBS_NOTIFY              0x0001L
156
#define LBS_SORT                0x0002L
157
#define LBS_NOREDRAW            0x0004L         /* not supported*/
158
#define LBS_MULTIPLESEL         0x0008L
159
#define LBS_OWNERDRAWFIXED      0x0010L         /* nyi*/
160
#define LBS_OWNERDRAWVARIABLE   0x0020L         /* nyi*/
161
#define LBS_HASSTRINGS          0x0040L         /* not supported*/
162
#define LBS_USETABSTOPS         0x0080L         /* nyi*/
163
#define LBS_NOINTEGRALHEIGHT    0x0100L         /* not supported*/
164
#define LBS_MULTICOLUMN         0x0200L         /* nyi*/
165
#define LBS_WANTKEYBOARDINPUT   0x0400L         /* not supported*/
166
#define LBS_EXTENDEDSEL         0x0800L         /* not supported*/
167
#define LBS_STANDARD            (LBS_NOTIFY | LBS_SORT | WS_VSCROLL | WS_BORDER)
168
#define LBS_CHECKBOX            0x1000L         /* non std*/
169
#define LBS_USEICON             0x2000L         /* non std*/
170
#define LBS_AUTOCHECK           0x4000L         /* non std*/
171
#define LBS_AUTOCHECKBOX        0x5000L         /* non std*/
172
/* private Microwindows styles for combobox*/
173
#define LBS_PRELOADED           0x4000L         /* Microwindows private*/
174
#define LBS_COMBOLBOX           0x8000L         /* Microwindows private*/
175
 
176
#if 0
177
#define LBS_DISABLENOSCROLL     0x1000L
178
#define LBS_NODATA              0x2000L
179
#define LBS_NOSEL               0x4000L
180
#endif
181
 
182
/* Listbox Notification Codes */
183
#define LBN_ERRSPACE        (-2)
184
#define LBN_SELCHANGE       1
185
#define LBN_DBLCLK          2
186
#define LBN_SELCANCEL       3
187
#define LBN_SETFOCUS        4
188
#define LBN_KILLFOCUS       5
189
#define LBN_CLICKCHECKMARK  6           /* non std*/
190
 
191
/* Listbox return value */
192
#define LB_OKAY             0
193
#define LB_ERR              (-1)
194
#define LB_ERRSPACE         (-2)
195
 
196
/* Edit Control Notification Codes*/
197
#define EN_SETFOCUS         0x0100
198
#define EN_KILLFOCUS        0x0200
199
#define EN_CHANGE           0x0300
200
#define EN_UPDATE           0x0400
201
#define EN_ERRSPACE         0x0500
202
#define EN_MAXTEXT          0x0501
203
#define EN_HSCROLL          0x0601
204
#define EN_VSCROLL          0x0602
205
 
206
/* Edit Control Styles*/
207
#define ES_LEFT             0x0000L
208
#define ES_CENTER           0x0001L
209
#define ES_RIGHT            0x0002L
210
#define ES_MULTILINE        0x0004L
211
#define ES_UPPERCASE        0x0008L
212
#define ES_LOWERCASE        0x0010L
213
#define ES_PASSWORD         0x0020L
214
#define ES_AUTOVSCROLL      0x0040L
215
#define ES_AUTOHSCROLL      0x0080L
216
#define ES_NOHIDESEL        0x0100L
217
#define ES_OEMCONVERT       0x0400L
218
#define ES_READONLY         0x0800L
219
#define ES_WANTRETURN       0x1000L
220
#define ES_NUMBER           0x2000L
221
 
222
/* Edit Control Messages*/
223
#define EM_GETSEL               0xF0B0
224
#define EM_SETSEL               0xF0B1
225
#define EM_GETRECT              0xF0B2
226
#define EM_SETRECT              0xF0B3
227
#define EM_SETRECTNP            0xF0B4
228
#define EM_SCROLL               0xF0B5
229
#define EM_LINESCROLL           0xF0B6
230
#define EM_SCROLLCARET          0xF0B7
231
#define EM_GETMODIFY            0xF0B8
232
#define EM_SETMODIFY            0xF0B9
233
#define EM_GETLINECOUNT         0xF0BA
234
#define EM_LINEINDEX            0xF0BB
235
#define EM_SETHANDLE            0xF0BC
236
#define EM_GETHANDLE            0xF0BD
237
#define EM_GETTHUMB             0xF0BE
238
#define EM_LINELENGTH           0xF0C1
239
#define EM_REPLACESEL           0xF0C2
240
#define EM_GETLINE              0xF0C4
241
#define EM_LIMITTEXT            0xF0C5
242
#define EM_CANUNDO              0xF0C6
243
#define EM_UNDO                 0xF0C7
244
#define EM_FMTLINES             0xF0C8
245
#define EM_LINEFROMCHAR         0xF0C9
246
#define EM_SETTABSTOPS          0xF0CB
247
#define EM_SETPASSWORDCHAR      0xF0CC
248
#define EM_EMPTYUNDOBUFFER      0xF0CD
249
#define EM_GETFIRSTVISIBLELINE  0xF0CE
250
#define EM_SETREADONLY          0xF0CF
251
#define EM_SETWORDBREAKPROC     0xF0D0
252
#define EM_GETWORDBREAKPROC     0xF0D1
253
#define EM_GETPASSWORDCHAR      0xF0D2
254
#define EM_SETMARGINS           0xF0D3
255
#define EM_GETMARGINS           0xF0D4
256
#define EM_SETLIMITTEXT         EM_LIMITTEXT
257
#define EM_GETLIMITTEXT         0xF0D5
258
#define EM_POSFROMCHAR          0xF0D6
259
#define EM_CHARFROMPOS          0xF0D7
260
#define EM_SETIMESTATUS         0xF0D8
261
#define EM_GETIMESTATUS         0xF0D9
262
 
263
/* Static Control messages*/
264
#define STM_SETICON         0xF170
265
#define STM_GETICON         0xF171
266
#define STM_SETIMAGE        0xF172
267
#define STM_GETIMAGE        0xF173
268
#define STM_MSGMAX          0xF174
269
 
270
/* Static Control notification code*/
271
#define STN_CLICKED         0
272
#define STN_DBLCLK          1
273
#define STN_ENABLE          2
274
#define STN_DISABLE         3
275
 
276
/* Static Control Styles */
277
#define SS_LEFT             0x00000000L
278
#define SS_CENTER           0x00000001L
279
#define SS_RIGHT            0x00000002L
280
#define SS_ICON             0x00000003L
281
#define SS_BLACKRECT        0x00000004L
282
#define SS_GRAYRECT         0x00000005L
283
#define SS_WHITERECT        0x00000006L
284
#define SS_BLACKFRAME       0x00000007L
285
#define SS_GRAYFRAME        0x00000008L
286
#define SS_WHITEFRAME       0x00000009L
287
#define SS_GROUPBOX         0x0000000AL
288
#define SS_SIMPLE           0x0000000BL
289
#define SS_LEFTNOWORDWRAP   0x0000000CL
290
#define SS_OWNERDRAW        0x0000000DL
291
#define SS_BITMAP           0x0000000EL
292
#define SS_ENHMETAFILE      0x0000000FL
293
#define SS_TYPEMASK         0x0000000FL
294
#define SS_NOPREFIX         0x00000080L
295
#define SS_ETCHEDHORZ       0x00000010L
296
#define SS_ETCHEDVERT       0x00000011L
297
#define SS_ETCHEDFRAME      0x00000012L
298
#define SS_ETCTYPEMAKS      0x0000001FL
299
#define SS_NOTIFY           0x00000100L
300
#define SS_CENTERIMAGE      0x00000200L
301
#define SS_RIGHTJUST        0x00000400L
302
#define SS_REALSIZEIMAGE    0x00000800L
303
#define SS_SUNKEN           0x00001000L         /* notimp*/
304
#define SS_ENDELLIPSIS      0x00004000L         /* notimp*/
305
#define SS_PATHELLIPSIS     0x00008000L         /* notimp*/
306
#define SS_WORDELLIPSIS     0x0000C000L         /* notimp*/
307
#define SS_ELLIPSISMASK     0x0000C000L         /* notimp*/
308
 
309
/* Combo Box styles*/
310
#define CBS_SIMPLE            0x0001L
311
#define CBS_DROPDOWN          0x0002L
312
#define CBS_DROPDOWNLIST      0x0003L
313
#define CBS_OWNERDRAWFIXED    0x0010L
314
#define CBS_OWNERDRAWVARIABLE 0x0020L
315
#define CBS_AUTOHSCROLL       0x0040L
316
#define CBS_OEMCONVERT        0x0080L
317
#define CBS_SORT              0x0100L
318
#define CBS_HASSTRINGS        0x0200L
319
#define CBS_NOINTEGRALHEIGHT  0x0400L
320
#define CBS_DISABLENOSCROLL   0x0800L
321
#define CBS_UPPERCASE         0x2000L
322
#define CBS_LOWERCASE         0x4000L
323
 
324
/* Combo box messages */
325
#define CB_GETEDITSEL               0xF140
326
#define CB_LIMITTEXT                0xF141
327
#define CB_SETEDITSEL               0xF142
328
#define CB_ADDSTRING                0xF143
329
#define CB_DELETESTRING             0xF144
330
#define CB_DIR                      0xF145
331
#define CB_GETCOUNT                 0xF146
332
#define CB_GETCURSEL                0xF147
333
#define CB_GETLBTEXT                0xF148
334
#define CB_GETLBTEXTLEN             0xF149
335
#define CB_INSERTSTRING             0xF14A
336
#define CB_RESETCONTENT             0xF14B
337
#define CB_FINDSTRING               0xF14C
338
#define CB_SELECTSTRING             0xF14D
339
#define CB_SETCURSEL                0xF14E
340
#define CB_SHOWDROPDOWN             0xF14F
341
#define CB_GETITEMDATA              0xF150
342
#define CB_SETITEMDATA              0xF151
343
#define CB_GETDROPPEDCONTROLRECT    0xF152
344
#define CB_SETITEMHEIGHT            0xF153
345
#define CB_GETITEMHEIGHT            0xF154
346
#define CB_SETEXTENDEDUI            0xF155
347
#define CB_GETEXTENDEDUI            0xF156
348
#define CB_GETDROPPEDSTATE          0xF157
349
#define CB_FINDSTRINGEXACT          0xF158
350
#define CB_SETLOCALE                0xF159      /* notimp*/
351
#define CB_GETLOCALE                0xF15A      /* notimp*/
352
#define CB_GETTOPINDEX              0xF15b      /* notimp*/
353
#define CB_SETTOPINDEX              0xF15c      /* notimp*/
354
#define CB_GETHORIZONTALEXTENT      0xF15d      /* notimp*/
355
#define CB_SETHORIZONTALEXTENT      0xF15e      /* notimp*/
356
#define CB_GETDROPPEDWIDTH          0xF15f      /* notimp*/
357
#define CB_SETDROPPEDWIDTH          0xF160      /* notimp*/
358
#define CB_INITSTORAGE              0xF161      /* notimp*/
359
#define CB_MSGMAX                   0xF162
360
 
361
/* Combo box notification codes */
362
#define CBN_ERRSPACE        (-1)
363
#define CBN_SELCHANGE       1
364
#define CBN_DBLCLK          2
365
#define CBN_SETFOCUS        3
366
#define CBN_KILLFOCUS       4
367
#define CBN_EDITCHANGE      5
368
#define CBN_EDITUPDATE      6
369
#define CBN_DROPDOWN        7
370
#define CBN_CLOSEUP         8
371
#define CBN_SELENDOK        9
372
#define CBN_SELENDCANCEL    10
373
 
374
/* Combo box message return values */
375
#define CB_OKAY         0
376
#define CB_ERR          (-1)
377
#define CB_ERRSPACE     (-2)
378
 
379
/* scroll bar control styles*/
380
#define SBS_HORZ                    0x0000L
381
#define SBS_VERT                    0x0001L
382
#define SBS_TYPEMASK                0x0001L
383
#define SBS_TOPALIGN                0x0002L
384
#define SBS_LEFTALIGN               0x0002L
385
#define SBS_BOTTOMALIGN             0x0004L
386
#define SBS_RIGHTALIGN              0x0004L
387
#define SBS_SIZEBOXTOPLEFTALIGN     0x0002L
388
#define SBS_SIZEBOXBOTTOMRIGHTALIGN 0x0004L
389
#define SBS_SIZEBOX                 0x0008L
390
#define SBS_SIZEGRIP                0x0010L
391
 
392
/* scroll bar constants*/
393
#define SB_HORZ             0
394
#define SB_VERT             1
395
#define SB_CTL              2
396
#define SB_BOTH             3
397
 
398
/* scroll bar notify codes*/
399
#define SB_LINEUP           0
400
#define SB_LINELEFT         0
401
#define SB_LINEDOWN         1
402
#define SB_LINERIGHT        1
403
#define SB_PAGEUP           2
404
#define SB_PAGELEFT         2
405
#define SB_PAGEDOWN         3
406
#define SB_PAGERIGHT        3
407
#define SB_THUMBPOSITION    4
408
#define SB_THUMBTRACK       5
409
#define SB_TOP              6
410
#define SB_LEFT             6
411
#define SB_BOTTOM           7
412
#define SB_RIGHT            7
413
#define SB_ENDSCROLL        8
414
 
415
#define SIF_RANGE           0x0001
416
#define SIF_PAGE            0x0002
417
#define SIF_POS             0x0004
418
#define SIF_DISABLENOSCROLL 0x0008
419
#define SIF_TRACKPOS        0x0010
420
#define SIF_ALL             (SIF_RANGE | SIF_PAGE | SIF_POS | SIF_TRACKPOS)
421
 
422
typedef struct tagSCROLLINFO {
423
    UINT    cbSize;
424
    UINT    fMask;
425
    int     nMin;
426
    int     nMax;
427
    UINT    nPage;
428
    int     nPos;
429
    int     nTrackPos;
430
} SCROLLINFO, *LPSCROLLINFO;
431
typedef SCROLLINFO CONST *LPCSCROLLINFO;
432
 
433
int     WINAPI SetScrollInfo(HWND, int, LPCSCROLLINFO, BOOL);
434
BOOL    WINAPI GetScrollInfo(HWND, int, LPSCROLLINFO);

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.