Initial commit, 3-52-19 alpha
[cls.git] / src / c / mswin / wxlisp.h
blob7149957b37873bb383152186b4556db7460c9f01
1 #define IDM_ABOUT 10
2 #define IDM_NEWPOINTS 11
3 #define IDM_NEWLINES 12
4 #define IDM_CLOSE 13
5 #define IDM_EXIT 14
6 #define IDM_TOPLEVEL 15
7 #define IDM_PRINT 16
8 #define IDM_PAGESETUP 17
10 #define IDM_UNDO 20
11 #define IDM_CUT 21
12 #define IDM_COPY 22
13 #define IDM_PASTE 23
14 #define IDM_CLEAR 24
15 #define IDM_COPYPASTE 25
17 #define IDM_TILE 30
18 #define IDM_CASCADE 31
19 #define IDM_ARRANGE 32
20 #define IDM_CLOSEALL 33
22 #define IDC_EDIT 50
23 #define IDC_FILENAME 51
24 #define IDC_EDITNAME 52
25 #define IDC_FILES 53
26 #define IDC_PATH 54
27 #define IDC_LISTBOX 55
29 #define IDC_SHOWWINDOW 60
30 #define IDC_HIDEWINDOW 61
31 #define IDC_DESTROY 62
33 #ifndef VK_C
34 #define VK_C 0x43
35 #endif
37 #define IDM_FIRSTCHILD 100
39 #define IDS_DIALOGFAILURE 1
40 #define IDS_STRUCTSIZE 2
41 #define IDS_INITIALIZATION 3
42 #define IDS_NOTEMPLATE 4
43 #define IDS_NOHINSTANCE 5
44 #define IDS_LOADSTRFAILURE 6
45 #define IDS_FINDRESFAILURE 7
46 #define IDS_LOADRESFAILURE 8
47 #define IDS_LOCKRESFAILURE 9
48 #define IDS_MEMALLOCFAILURE 10
49 #define IDS_MEMLOCKFAILURE 11
50 #define IDS_NOHOOK 12
51 #define IDS_SETUPFAILURE 13
52 #define IDS_PARSEFAILURE 14
53 #define IDS_RETDEFFAILURE 15
54 #define IDS_LOADDRVFAILURE 16
55 #define IDS_GETDEVMODEFAIL 17
56 #define IDS_INITFAILURE 18
57 #define IDS_NODEVICES 19
58 #define IDS_NODEFAULTPRN 20
59 #define IDS_DNDMMISMATCH 21
60 #define IDS_CREATEICFAILURE 22
61 #define IDS_PRINTERNOTFOUND 23
62 #define IDS_NOFONTS 24
63 #define IDS_SUBCLASSFAILURE 25
64 #define IDS_INVALIDFILENAME 26
65 #define IDS_BUFFERTOOSMALL 27
66 #define IDS_FILTERSTRING 28
67 #define IDS_UNKNOWNERROR 29
69 #ifndef SetWindowStyle
70 #define SetWindowStyle(w,s) SetWindowLong(w, GWL_STYLE, s)
71 #endif
72 #define MDIDestroyWindow(c,w) SendMessage(c, WM_MDIDESTROY, (WPARAM) w, 0)
73 #define MDICreateWindow(c,s) \
74 ((HWND) SendMessage(hWndClient, WM_MDICREATE, \
75 0, (LONG) (LPMDICREATESTRUCT) s))
76 #define MDIRestoreWindow(c,w) SendMessage(c, WM_MDIRESTORE, (WPARAM) w, 0)
77 #define MDIActivateWindow(c,w) SendMessage(c, WM_MDIACTIVATE, (WPARAM) w, 0)
78 #ifdef WIN32
79 #define MDIGetActiveWindow(c) \
80 ((HWND) SendMessage(hWndClient, WM_MDIGETACTIVE, 0, 0))
81 #else
82 #define MDIGetActiveWindow(c) \
83 ((HWND) LOWORD(SendMessage(hWndClient, WM_MDIGETACTIVE, 0, 0)))
84 #endif /* WIN32 */
85 #define XLSDestroyWindow(w) SendMessage(w, WM_COMMAND, IDC_DESTROY, 0)
87 #ifndef RC_INVOKED
88 extern void ExitXLS(void);
89 extern void malloc_cleanup(void);
90 extern void MSWResetGraphics(void);
91 extern void MSWGraphCleanup(void);
92 extern void MSWResetMenus(void);
93 extern void MSWResetDialogs(void);
94 extern void MSWDLLCleanup(void);
95 #endif