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

Subversion Repositories openrisc_me

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 27 unneback
/* winuser.h*/
2
/*
3
 * Copyright (c) 1999, 2000 Greg Haerr <greg@censoft.com>
4
 *
5
 * Win32 USER structures and API
6
 */
7
#include "winctl.h"     /* required compatibility for resource compiler*/
8
 
9
/* moved from windef.h for resource compiler*/
10
typedef LRESULT (CALLBACK* WNDPROC)(HWND, UINT, WPARAM, LPARAM);
11
typedef LRESULT (CALLBACK* DLGPROC)(HWND, UINT, WPARAM, LPARAM);
12
 
13
/* win api*/
14
LRESULT WINAPI  DefWindowProc(HWND hwnd,UINT msg,WPARAM wParam,LPARAM lParam);
15
 
16
/* Class styles*/
17
#define CS_VREDRAW          0x0001
18
#define CS_HREDRAW          0x0002
19
#define CS_DBLCLKS          0x0008
20
#define CS_OWNDC            0x0020
21
#define CS_CLASSDC          0x0040
22
#define CS_PARENTDC         0x0080
23
#define CS_NOCLOSE          0x0200
24
#define CS_SAVEBITS         0x0800
25
#define CS_BYTEALIGNCLIENT  0x1000
26
#define CS_BYTEALIGNWINDOW  0x2000
27
#define CS_GLOBALCLASS      0x4000
28
 
29
typedef struct tagWNDCLASSA {
30
    MWLIST      link;                   /* microwin*/
31
    UINT        style;
32
    WNDPROC     lpfnWndProc;
33
    int         cbClsExtra;             /* nyi*/
34
    int         cbWndExtra;
35
    HINSTANCE   hInstance;              /* nyi*/
36
    HICON       hIcon;                  /* nyi*/
37
    HCURSOR     hCursor;                /* nyi*/
38
    HBRUSH      hbrBackground;
39
    LPCSTR      lpszMenuName;           /* nyi*/
40
    LPCSTR      lpszClassName;
41
    CHAR        szClassName[40];        /* microwin*/
42
} WNDCLASS, *PWNDCLASS, NEAR *NPWNDCLASS, FAR *LPWNDCLASS;
43
 
44
ATOM WINAPI     RegisterClass(CONST WNDCLASS *lpWndClass);
45
 
46
/*
47
 * Message structure
48
 */
49
typedef struct tagMSG {
50
    MWLIST      link;                   /* microwin*/
51
    HWND        hwnd;
52
    UINT        message;
53
    WPARAM      wParam;
54
    LPARAM      lParam;
55
    DWORD       time;
56
    POINT       pt;
57
} MSG, *PMSG, NEAR *NPMSG, FAR *LPMSG;
58
 
59
#define POINTSTOPOINT(pt, pts)                          \
60
        { (pt).x = (LONG)(SHORT)LOWORD(*(LONG*)&pts);   \
61
          (pt).y = (LONG)(SHORT)HIWORD(*(LONG*)&pts); }
62
 
63
#define POINTTOPOINTS(pt)      (MAKELONG((short)((pt).x), (short)((pt).y)))
64
#define MAKEWPARAM(l, h)      (WPARAM)MAKELONG(l, h)
65
#define MAKELPARAM(l, h)      (LPARAM)MAKELONG(l, h)
66
#define MAKELRESULT(l, h)     (LRESULT)MAKELONG(l, h)
67
 
68
/* window messages*/
69
#define WM_NULL                         0x0000
70
#define WM_CREATE                       0x0001
71
#define WM_DESTROY                      0x0002
72
#define WM_MOVE                         0x0003
73
#define WM_SIZE                         0x0005
74
#define WM_ACTIVATE                     0x0006
75
#define WM_SETFOCUS                     0x0007
76
#define WM_KILLFOCUS                    0x0008
77
#define WM_ENABLE                       0x000A
78
#define WM_SETTEXT                      0x000C
79
#define WM_GETTEXT                      0x000D
80
#define WM_GETTEXTLENGTH                0x000E
81
#define WM_PAINT                        0x000F
82
#define WM_CLOSE                        0x0010
83
#define WM_QUIT                         0x0012
84
#define WM_ERASEBKGND                   0x0014
85
#define WM_SHOWWINDOW                   0x0018
86
#define WM_SETFONT                      0x0030
87
#define WM_GETFONT                      0x0031
88
#define WM_WINDOWPOSCHANGED             0x0047
89
#define WM_NCCALCSIZE                   0x0083
90
#define WM_NCHITTEST                    0x0084
91
#define WM_NCPAINT                      0x0085
92
#define WM_GETDLGCODE                   0x0087
93
#define WM_NCMOUSEMOVE                  0x00A0
94
#define WM_NCLBUTTONDOWN                0x00A1
95
#define WM_NCLBUTTONUP                  0x00A2
96
#define WM_NCLBUTTONDBLCLK              0x00A3
97
#define WM_NCRBUTTONDOWN                0x00A4
98
#define WM_NCRBUTTONUP                  0x00A5
99
#define WM_NCRBUTTONDBLCLK              0x00A6
100
#define WM_KEYFIRST                     0x0100
101
#define WM_KEYDOWN                      0x0100
102
#define WM_KEYUP                        0x0101
103
#define WM_CHAR                         0x0102
104
#define WM_DEADCHAR                     0x0103  /* notimp*/
105
#define WM_SYSKEYDOWN                   0x0104  /* nyi*/
106
#define WM_SYSKEYUP                     0x0105  /* nyi*/
107
#define WM_SYSCHAR                      0x0106  /* nyi*/
108
#define WM_SYSDEADCHAR                  0x0107  /* notimp*/
109
#define WM_KEYLAST                      0x0108
110
#define WM_COMMAND                      0x0111
111
#define WM_TIMER                        0x0113
112
#define WM_HSCROLL                      0x0114
113
#define WM_VSCROLL                      0x0115
114
 
115
#define WM_MOUSEFIRST                   0x0200
116
#define WM_MOUSEMOVE                    0x0200
117
#define WM_LBUTTONDOWN                  0x0201
118
#define WM_LBUTTONUP                    0x0202
119
#define WM_LBUTTONDBLCLK                0x0203
120
#define WM_RBUTTONDOWN                  0x0204
121
#define WM_RBUTTONUP                    0x0205
122
#define WM_RBUTTONDBLCLK                0x0206
123
#define WM_MBUTTONDOWN                  0x0207
124
#define WM_MBUTTONUP                    0x0208
125
#define WM_MBUTTONDBLCLK                0x0209
126
#define WM_MOUSEWHEEL                   0x020A
127
#define WM_MOUSELAST                    0x020A
128
 
129
#define WM_CARET_CREATE                 0x03E0 /* Microwindows only*/
130
#define WM_CARET_DESTROY                0x03E1 /* Microwindows only*/
131
#define WM_CARET_BLINK                  0x03E2 /* Microwindows only*/
132
#define WM_FDINPUT                      0x03F0 /* Microwindows only*/
133
#define WM_FDOUTPUT                     0x03F1 /* Microwindows only*/
134
#define WM_FDEXCEPT                     0x03F2 /* Microwindows only*/
135
#define WM_USER                         0x0400
136
 
137
/* WM_ACTIVATE state values*/
138
#define WA_INACTIVE     0
139
#define WA_ACTIVE       1
140
#define WA_CLICKACTIVE  2
141
 
142
/* WM_NCHITTEST codes*/
143
#define HTERROR             (-2)
144
#define HTTRANSPARENT       (-1)
145
#define HTNOWHERE           0
146
#define HTCLIENT            1
147
#define HTCAPTION           2
148
#define HTSYSMENU           3
149
#define HTGROWBOX           4
150
#define HTSIZE              HTGROWBOX
151
#define HTMENU              5
152
#define HTHSCROLL           6
153
#define HTVSCROLL           7
154
#define HTMINBUTTON         8
155
#define HTMAXBUTTON         9
156
#define HTLEFT              10
157
#define HTRIGHT             11
158
#define HTTOP               12
159
#define HTTOPLEFT           13
160
#define HTTOPRIGHT          14
161
#define HTBOTTOM            15
162
#define HTBOTTOMLEFT        16
163
#define HTBOTTOMRIGHT       17
164
#define HTBORDER            18
165
#define HTREDUCE            HTMINBUTTON
166
#define HTZOOM              HTMAXBUTTON
167
#define HTSIZEFIRST         HTLEFT
168
#define HTSIZELAST          HTBOTTOMRIGHT
169
#define HTOBJECT            19
170
#define HTCLOSE             20
171
#define HTHELP              21
172
 
173
/* WM_SIZE wparam values*/
174
#define SIZE_RESTORED       0
175
#define SIZE_MINIMIZED      1
176
#define SIZE_MAXIMIZED      2
177
#define SIZE_MAXSHOW        3
178
#define SIZE_MAXHIDE        4
179
 
180
LRESULT WINAPI  CallWindowProc(WNDPROC lpPrevWndFunc, HWND hwnd, UINT Msg,
181
                        WPARAM wParam, LPARAM lParam);
182
LRESULT WINAPI  SendMessage(HWND hwnd, UINT Msg, WPARAM wParam, LPARAM lParam);
183
BOOL WINAPI     PostMessage(HWND hwnd, UINT Msg, WPARAM wParam, LPARAM lParam);
184
BOOL WINAPI     PostThreadMessage(DWORD dwThreadId, UINT Msg, WPARAM wParam,
185
                        LPARAM lParam);
186
VOID WINAPI     PostQuitMessage(int nExitCode);
187
 
188
/* PeekMessage options*/
189
#define PM_NOREMOVE             0x0000
190
#define PM_REMOVE               0x0001
191
#define PM_NOYIELD              0x0002
192
 
193
BOOL WINAPI     PeekMessage(LPMSG lpMsg, HWND hwnd, UINT uMsgFilterMin,
194
                        UINT uMsgFilterMax, UINT wRemoveMsg);
195
BOOL WINAPI     GetMessage(LPMSG lpMsg,HWND hwnd,UINT wMsgFilterMin,
196
                        UINT wMsgFilterMax);
197
BOOL WINAPI     TranslateMessage(CONST MSG *lpMsg);
198
LONG WINAPI     DispatchMessage(CONST MSG *lpMsg);
199
 
200
/* note: the following struct is in reverse order from the
201
 * microsoft version since WINAPI is cdecl in this implementation
202
 */
203
typedef struct tagCREATESTRUCT {
204
    DWORD       dwExStyle;
205
    LPCSTR      lpszClass;
206
    LPCSTR      lpszName;
207
    LONG        style;
208
    int         x;
209
    int         y;
210
    int         cx;
211
    int         cy;
212
    HWND        hwndParent;
213
    HMENU       hMenu;
214
    HINSTANCE   hInstance;
215
    LPVOID      lpCreateParams;
216
} CREATESTRUCT, *LPCREATESTRUCT;
217
 
218
/*
219
 * Window Styles
220
 */
221
#define WS_OVERLAPPED       0x00000000L
222
#define WS_POPUP            0x80000000L
223
#define WS_CHILD            0x40000000L
224
#define WS_MINIMIZE         0x20000000L
225
#define WS_VISIBLE          0x10000000L
226
#define WS_DISABLED         0x08000000L
227
#define WS_CLIPSIBLINGS     0x04000000L
228
#define WS_CLIPCHILDREN     0x02000000L
229
#define WS_MAXIMIZE         0x01000000L
230
#define WS_CAPTION          0x00C00000L     /* WS_BORDER | WS_DLGFRAME  */
231
#define WS_BORDER           0x00800000L
232
#define WS_DLGFRAME         0x00400000L
233
#define WS_VSCROLL          0x00200000L
234
#define WS_HSCROLL          0x00100000L
235
#define WS_SYSMENU          0x00080000L
236
#define WS_THICKFRAME       0x00040000L
237
#define WS_GROUP            0x00020000L
238
#define WS_TABSTOP          0x00010000L
239
 
240
#define WS_MINIMIZEBOX      0x00020000L
241
#define WS_MAXIMIZEBOX      0x00010000L
242
 
243
 
244
#define WS_TILED            WS_OVERLAPPED
245
#define WS_ICONIC           WS_MINIMIZE
246
#define WS_SIZEBOX          WS_THICKFRAME
247
#define WS_TILEDWINDOW      WS_OVERLAPPEDWINDOW
248
 
249
/*
250
 * Common Window Styles
251
 */
252
#define WS_OVERLAPPEDWINDOW (WS_OVERLAPPED     | \
253
                             WS_CAPTION        | \
254
                             WS_SYSMENU        | \
255
                             WS_THICKFRAME     | \
256
                             WS_MINIMIZEBOX    | \
257
                             WS_MAXIMIZEBOX)
258
 
259
#define WS_POPUPWINDOW      (WS_POPUP          | \
260
                             WS_BORDER         | \
261
                             WS_SYSMENU)
262
 
263
#define WS_CHILDWINDOW      (WS_CHILD)
264
 
265
/*
266
 * Extended Window Styles
267
 */
268
#define WS_EX_DLGMODALFRAME     0x00000001L
269
#define WS_EX_NOPARENTNOTIFY    0x00000004L
270
#define WS_EX_TOPMOST           0x00000008L
271
#define WS_EX_ACCEPTFILES       0x00000010L
272
#define WS_EX_TRANSPARENT       0x00000020L
273
#define WS_EX_MDICHILD          0x00000040L
274
#define WS_EX_TOOLWINDOW        0x00000080L
275
#define WS_EX_WINDOWEDGE        0x00000100L
276
#define WS_EX_CLIENTEDGE        0x00000200L
277
#define WS_EX_CONTEXTHELP       0x00000400L
278
 
279
#define WS_EX_RIGHT             0x00001000L
280
#define WS_EX_LEFT              0x00000000L
281
#define WS_EX_RTLREADING        0x00002000L
282
#define WS_EX_LTRREADING        0x00000000L
283
#define WS_EX_LEFTSCROLLBAR     0x00004000L
284
#define WS_EX_RIGHTSCROLLBAR    0x00000000L
285
 
286
#define WS_EX_CONTROLPARENT     0x00010000L
287
#define WS_EX_STATICEDGE        0x00020000L
288
#define WS_EX_APPWINDOW         0x00040000L
289
#define WS_EX_LAYERED           0x00080000L
290
 
291
#define WS_EX_OVERLAPPEDWINDOW  (WS_EX_WINDOWEDGE | WS_EX_CLIENTEDGE)
292
#define WS_EX_PALETTEWINDOW     (WS_EX_WINDOWEDGE | WS_EX_TOOLWINDOW | WS_EX_TOPMOST)
293
 
294
#define CW_USEDEFAULT       ((int)0x80000000)
295
 
296
#define HWND_DESKTOP        ((HWND)0)
297
 
298
#define CreateWindow(lpClassName, lpWindowName, dwStyle, x, y, nWidth, nHeight, hwndParent, hMenu, hInstance, lpParam)\
299
                CreateWindowEx(0L, lpClassName, lpWindowName, dwStyle, x, y,\
300
                nWidth, nHeight, hwndParent, hMenu, hInstance, lpParam)
301
 
302
HWND WINAPI     CreateWindowEx(DWORD dwExStyle, LPCSTR lpClassName,
303
                        LPCSTR lpWindowName, DWORD dwStyle, int X, int Y,
304
                        int nWidth, int nHeight, HWND hwndParent, HMENU hMenu,
305
                        HINSTANCE hInstance, LPVOID lpParam);
306
BOOL WINAPI     DestroyWindow(HWND hwnd);
307
BOOL WINAPI     IsWindow(HWND hwnd);
308
#define IsWindowVisible(hwnd)   ((BOOL)((hwnd)->unmapcount == 0))
309
 
310
/*
311
 * ShowWindow() Commands
312
 */
313
#define SW_HIDE             0
314
#define SW_SHOWNORMAL       1
315
#define SW_NORMAL           1
316
#define SW_SHOWMINIMIZED    2
317
#define SW_SHOWMAXIMIZED    3
318
#define SW_MAXIMIZE         3
319
#define SW_SHOWNOACTIVATE   4
320
#define SW_SHOW             5
321
#define SW_MINIMIZE         6
322
#define SW_SHOWMINNOACTIVE  7
323
#define SW_SHOWNA           8
324
#define SW_RESTORE          9
325
#define SW_SHOWDEFAULT      10
326
#define SW_FORCEMINIMIZE    11
327
#define SW_MAX              11
328
 
329
BOOL WINAPI     ShowWindow(HWND hwnd, int nCmdShow);
330
BOOL WINAPI     InvalidateRect(HWND hwnd, CONST RECT *lpRect, BOOL bErase);
331
BOOL WINAPI     InvalidateRgn(HWND hwnd, HRGN hrgn, BOOL bErase);
332
BOOL WINAPI     ValidateRect(HWND hwnd, CONST RECT *lprc);
333
BOOL WINAPI     ValidateRgn(HWND hwnd, HRGN hrgn);
334
BOOL WINAPI     UpdateWindow(HWND hwnd);
335
 
336
BOOL WINAPI     SetLayeredWindowAttributes(HWND hwnd, COLORREF crKey,
337
                        BYTE bAlpha, DWORD dwFlags);
338
#define LWA_COLORKEY    0x00000001
339
#define LWA_ALPHA       0x00000002
340
 
341
HWND WINAPI     GetFocus(VOID);
342
HWND WINAPI     SetFocus(HWND hwnd);
343
BOOL WINAPI     SetForegroundWindow(HWND hwnd);
344
HWND WINAPI     SetActiveWindow(HWND hwnd);
345
HWND WINAPI     GetActiveWindow(VOID);
346
BOOL WINAPI     BringWindowToTop(HWND hwnd);
347
HWND WINAPI     GetDesktopWindow(VOID);
348
HWND WINAPI     GetParent(HWND hwnd);
349
BOOL WINAPI     EnableWindow(HWND hwnd, BOOL bEnable);
350
#define IsWindowEnabled(hwnd)   ((BOOL)(((hwnd)->style&WS_DISABLED) == 0))
351
 
352
BOOL WINAPI     AdjustWindowRectEx(LPRECT lpRect, DWORD dwStyle, BOOL bMenu,
353
                        DWORD dwExStyle);
354
BOOL WINAPI     GetClientRect(HWND hwnd, LPRECT lpRect);
355
BOOL WINAPI     GetWindowRect(HWND hwnd, LPRECT lpRect);
356
 
357
BOOL WINAPI     ClientToScreen(HWND hwnd, LPPOINT lpPoint);
358
BOOL WINAPI     ScreenToClient(HWND hwnd, LPPOINT lpPoint);
359
int  WINAPI     MapWindowPoints(HWND hwndFrom, HWND hwndTo, LPPOINT lpPoints,
360
                        UINT cPoints);
361
 
362
BOOL WINAPI     SetRect(LPRECT lprc,int xLeft,int yTop,int xRight,int yBottom);
363
BOOL WINAPI     SetRectEmpty(LPRECT lprc);
364
BOOL WINAPI     CopyRect(LPRECT lprcDst, CONST RECT *lprcSrc);
365
BOOL WINAPI     IsRectEmpty(CONST RECT *lprc);
366
BOOL WINAPI     InflateRect(LPRECT lprc, int dx, int dy);
367
BOOL WINAPI     OffsetRect(LPRECT lprc, int dx, int dy);
368
/* The bcc compiler doesn't work passing structs by value, so we have this*/
369
#if ELKS
370
#define         PtInRect(lprc,pt)       MwPTINRECT(lprc, *(long *)&(pt))
371
#else
372
#define         PtInRect(lprc,pt)       MwPTINRECT(lprc, pt)
373
#endif
374
BOOL WINAPI     MwPTINRECT(CONST RECT *lprc, POINT pt);
375
 
376
/*
377
 * Window field offsets for GetWindowLong()
378
 */
379
#define GWL_WNDPROC         (-4)
380
#define GWL_HINSTANCE       (-6)
381
#define GWL_HWNDPARENT      (-8)
382
#define GWL_STYLE           (-16)
383
#define GWL_EXSTYLE         (-20)
384
#define GWL_USERDATA        (-21)
385
#define GWL_ID              (-12)
386
 
387
/*
388
 * Class field offsets for GetClassLong()
389
 */
390
#define GCL_MENUNAME        (-8)
391
#define GCL_HBRBACKGROUND   (-10)
392
#define GCL_HCURSOR         (-12)
393
#define GCL_HICON           (-14)
394
#define GCL_HMODULE         (-16)
395
#define GCL_CBWNDEXTRA      (-18)
396
#define GCL_CBCLSEXTRA      (-20)
397
#define GCL_WNDPROC         (-24)
398
#define GCL_STYLE           (-26)
399
#define GCW_ATOM            (-32)
400
#define GCL_HICONSM         (-34)
401
 
402
LONG WINAPI     GetWindowLong(HWND hwnd, int nIndex);
403
LONG WINAPI     SetWindowLong(HWND hwnd, int nIndex, LONG lNewLong);
404
WORD WINAPI     GetWindowWord(HWND hwnd, int nIndex);
405
WORD WINAPI     SetWindowWord(HWND hwnd, int nIndex, WORD wNewWord);
406
#define GetDlgCtrlID(hwnd)      ((int)(hwnd)->id)
407
DWORD WINAPI    GetClassLong(HWND hwnd, int nIndex);
408
int WINAPI      GetWindowTextLength(HWND hwnd);
409
int WINAPI      GetWindowText(HWND hwnd, LPSTR lpString, int nMaxCount);
410
BOOL WINAPI     SetWindowText(HWND hwnd, LPCSTR lpString);
411
 
412
BOOL WINAPI     MoveWindow(HWND hwnd, int x, int y, int nWidth, int nHeight,
413
                        BOOL bRepaint);
414
 
415
/* SetWindowPos Flags*/
416
#define SWP_NOSIZE          0x0001
417
#define SWP_NOMOVE          0x0002
418
#define SWP_NOZORDER        0x0004
419
#define SWP_NOREDRAW        0x0008
420
#define SWP_NOACTIVATE      0x0010      /* nyi*/
421
#define SWP_FRAMECHANGED    0x0020      /* nyi*/
422
#define SWP_SHOWWINDOW      0x0040
423
#define SWP_HIDEWINDOW      0x0080
424
#define SWP_NOCOPYBITS      0x0100      /* nyi*/
425
#define SWP_NOOWNERZORDER   0x0200      /* nyi*/
426
#define SWP_NOSENDCHANGING  0x0400      /* nyi*/
427
#define SWP_DRAWFRAME       SWP_FRAMECHANGED
428
#define SWP_NOREPOSITION    SWP_NOOWNERZORDER
429
#define SWP_DEFERERASE      0x2000      /* nyi*/
430
#define SWP_ASYNCWINDOWPOS  0x4000      /* nyi*/
431
 
432
#define HWND_TOP        ((HWND)0)       /* nyi*/
433
#define HWND_BOTTOM     ((HWND)1)       /* nyi*/
434
#define HWND_TOPMOST    ((HWND)-1)      /* nyi*/
435
#define HWND_NOTOPMOST  ((HWND)-2)      /* nyi*/
436
 
437
/* WM_WINDOWPOSCHANGED message*/
438
typedef struct tagWINDOWPOS {
439
        HWND    hwnd;
440
        HWND    hwndInsertAfter;
441
        int     x;
442
        int     y;
443
        int     cx;
444
        int     cy;
445
        UINT    flags;
446
} WINDOWPOS, *LPWINDOWPOS, *PWINDOWPOS;
447
 
448
BOOL WINAPI     SetWindowPos(HWND hwnd, HWND hwndInsertAfter, int x, int y,
449
                        int cx, int cy, UINT fuFlags);
450
 
451
BOOL WINAPI     GetCursorPos(LPPOINT lpPoint);
452
HWND WINAPI     GetCapture(VOID);
453
HWND WINAPI     SetCapture(HWND hwnd);
454
BOOL WINAPI     ReleaseCapture(VOID);
455
 
456
/*
457
 * WM_NCCALCSIZE parameter structure
458
 */
459
typedef struct tagNCCALCSIZE_PARAMS {
460
    RECT       rgrc[3];
461
    /*PWINDOWPOS lppos;*/               /* removed for microwin*/
462
} NCCALCSIZE_PARAMS, *LPNCCALCSIZE_PARAMS;
463
 
464
typedef FARPROC TIMERPROC;
465
 
466
UINT WINAPI     SetTimer(HWND hwnd, UINT idTimer, UINT uTimeout,
467
                        TIMERPROC lpTimerFunc);
468
BOOL WINAPI     KillTimer(HWND hwnd, UINT idTimer);
469
UINT            MwGetNextTimeoutValue(void);
470
void            MwHandleTimers(void);
471
 
472
/* GetSystemMetrics indices*/
473
#define SM_CXSCREEN             0
474
#define SM_CYSCREEN             1
475
#define SM_CXVSCROLL            2
476
#define SM_CYHSCROLL            3
477
#define SM_CYCAPTION            4
478
#define SM_CXBORDER             5
479
#define SM_CYBORDER             6
480
#define SM_CXDLGFRAME           7
481
#define SM_CYDLGFRAME           8
482
#define SM_CXFIXEDFRAME         SM_CXDLGFRAME
483
#define SM_CYFIXEDFRAME         SM_CYDLGFRAME
484
#define SM_CYMENU               15
485
#define SM_CYVSCROLL            20
486
#define SM_CXHSCROLL            21
487
#define SM_CXFRAME              32
488
#define SM_CYFRAME              33
489
#define SM_CXSIZEFRAME          SM_CXFRAME
490
#define SM_CYSIZEFRAME          SM_CYFRAME
491
 
492
int WINAPI      GetSystemMetrics(int nIndex);
493
 
494
HWND WINAPI     GetDlgItem(HWND hDlg, int nIDDlgItem);
495
 
496
/**************************** Caret support **********************************/
497
BOOL WINAPI CreateCaret(HWND hwnd, HBITMAP hBitmap, int nWidth, int nHeight);
498
BOOL WINAPI DestroyCaret(VOID);
499
BOOL WINAPI HideCaret (HWND hwnd);
500
BOOL WINAPI ShowCaret(HWND hwnd);
501
BOOL WINAPI SetCaretPos(int nX, int nY);
502
BOOL WINAPI GetCaretPos(LPPOINT lpPoint);
503
UINT WINAPI GetCaretBlinkTime(VOID);
504
BOOL WINAPI SetCaretBlinkTime(UINT uMSeconds);

powered by: WebSVN 2.1.0

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