Revision: | 1.1 |
Committed: | Mon Nov 24 17:28:08 2003 UTC (20 years, 8 months ago) by pcg |
Content type: | text/plain |
Branch: | MAIN |
CVS Tags: | rel-7_0, post_menubar_removal, rel-6_2, rel-6_3, rel-6_0, rel-6_1, rel-2_1_0, rel-5_5, rel-5_4, rel-5_7, rel-5_1, rel-5_0, rel-5_3, rel-5_2, rel-4_4, rel-4_6, rel-4_7, rel-5_9, rel-5_8, rel-4_2, rel-4_3, rel-3_7, rel-3_8, rel-3_5, rel-3_4, rel-3_3, rel-3_2, rel-2_8, rel-3_0, rel-4_0, rel-2_4, rel-2_5, rel-2_2, rel-2_3, rel-2_0, rel-4_1, rel-1-9, rel-1-3, rel-1-2, rxvt-2-0, rel-1_9, rel-3_6, rel-2_7, rel-4_8, rel-4_9 |
Log Message: | *** empty log message *** |
# | Content |
---|---|
1 | |
2 | |
3 | #ifndef __NTDEF |
4 | #define __NTDEF |
5 | #include <windows.h> |
6 | |
7 | #define INVALID_HANDLE ((HANDLE) -2) |
8 | #define NONMAPPED_HANDLE ((HANDLE) -3) |
9 | #define VALID_WINDOW(x) (x && (((NT_window *)x)->w != INVALID_HANDLE)) |
10 | #define xtrace |
11 | #define cjh_printf |
12 | |
13 | #define CNUMTORGB(x) x |
14 | /* #define printf(x) *//* x */ |
15 | /* #define SetSystemPaletteUse(x) *//* x */ |
16 | |
17 | /* Windows NT Special event aliases */ |
18 | |
19 | #define USR_MapNotify 0x0401 |
20 | #define USR_EnterNotify 0x0402 |
21 | #define USR_LeaveNotify 0x0403 |
22 | #define USR_Expose 0x0404 |
23 | #define USR_ResizeRequest 0x0405 |
24 | #define USR_WakeUp 0x0406 |
25 | #define USR_ConvertSelection 0x0407 |
26 | |
27 | struct NT_child |
28 | { |
29 | struct NT_window *w; |
30 | struct NT_child *next; |
31 | } NT_child; |
32 | |
33 | typedef struct NT_window |
34 | { |
35 | HWND w; |
36 | HBRUSH bg; |
37 | int parentRelative; |
38 | struct NT_window *parent; /* parent of this window */ |
39 | struct NT_window *next; /* next window in list */ |
40 | struct NT_child *child; /* points to list of children */ |
41 | int x, y; /* Position */ |
42 | unsigned int wdth, hght; /* Dimensions */ |
43 | char *title_text; |
44 | struct NT_prop_list *props; /* linked list of properties.*/ |
45 | HDC hDC; |
46 | HBITMAP hBitmap; |
47 | int min; |
48 | int minx, miny; /* minimum window size */ |
49 | int top_flag; |
50 | long mask; /* selectInputMask */ |
51 | } NT_window; |
52 | |
53 | /* Routine declarations */ |
54 | |
55 | struct NT_window *NT_find_window_from_id(); |
56 | int NT_delete_window(); |
57 | |
58 | struct NT_window *NT_new_window(); |
59 | int NT_add_child(NT_window *parent,NT_window *child); |
60 | struct NT_window *NT_find_child(NT_window *w,unsigned long mask, |
61 | unsigned long val); |
62 | int NT_del_child(NT_window *parent,NT_window *child); |
63 | void freeMemory(void *p); |
64 | void *allocateMemory(int s); |
65 | void initQ(); |
66 | void catchNextDestroyClipboard(); |
67 | |
68 | void NT_SetAtom(ATOM class); |
69 | HWND NT_create_window(char *title,DWORD style,int x,int y,int w, int h,HWND parent); |
70 | LONG NT_handleMsg(HWND hWnd,UINT message,UINT wParam,LONG lParam); |
71 | HBITMAP NT_getWallpaper(); |
72 | void NT_moveWindow(NT_window *ntw, BOOL repaint); |
73 | #endif |