Mercurial > hg > xemacs-beta
comparison src/device-msw.c @ 424:11054d720c21 r21-2-20
Import from CVS: tag r21-2-20
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:26:11 +0200 |
parents | da8ed4261e83 |
children |
comparison
equal
deleted
inserted
replaced
423:28d9c139be4c | 424:11054d720c21 |
---|---|
137 wc.cbSize = sizeof (WNDCLASSEX); | 137 wc.cbSize = sizeof (WNDCLASSEX); |
138 wc.style = CS_OWNDC; /* One DC per window */ | 138 wc.style = CS_OWNDC; /* One DC per window */ |
139 wc.lpfnWndProc = (WNDPROC) mswindows_wnd_proc; | 139 wc.lpfnWndProc = (WNDPROC) mswindows_wnd_proc; |
140 wc.cbClsExtra = 0; | 140 wc.cbClsExtra = 0; |
141 wc.cbWndExtra = MSWINDOWS_WINDOW_EXTRA_BYTES; | 141 wc.cbWndExtra = MSWINDOWS_WINDOW_EXTRA_BYTES; |
142 wc.hInstance = NULL; /* ? */ | 142 /* This must match whatever is passed to CreateWIndowEx, NULL is ok |
143 for this. */ | |
144 wc.hInstance = NULL; | |
143 wc.hIcon = LoadIcon (GetModuleHandle(NULL), XEMACS_CLASS); | 145 wc.hIcon = LoadIcon (GetModuleHandle(NULL), XEMACS_CLASS); |
144 wc.hCursor = LoadCursor (NULL, IDC_ARROW); | 146 wc.hCursor = LoadCursor (NULL, IDC_ARROW); |
145 /* Background brush is only used during sizing, when XEmacs cannot | 147 /* Background brush is only used during sizing, when XEmacs cannot |
146 take over */ | 148 take over */ |
147 wc.hbrBackground = (HBRUSH)(COLOR_APPWORKSPACE + 1); | 149 wc.hbrBackground = (HBRUSH)(COLOR_APPWORKSPACE + 1); |
149 | 151 |
150 wc.lpszClassName = XEMACS_CLASS; | 152 wc.lpszClassName = XEMACS_CLASS; |
151 wc.hIconSm = LoadImage (GetModuleHandle (NULL), XEMACS_CLASS, | 153 wc.hIconSm = LoadImage (GetModuleHandle (NULL), XEMACS_CLASS, |
152 IMAGE_ICON, 16, 16, 0); | 154 IMAGE_ICON, 16, 16, 0); |
153 RegisterClassEx (&wc); | 155 RegisterClassEx (&wc); |
156 | |
157 #ifdef HAVE_WIDGETS | |
158 xzero (wc); | |
159 /* Register the main window class */ | |
160 wc.cbSize = sizeof (WNDCLASSEX); | |
161 wc.lpfnWndProc = (WNDPROC) mswindows_control_wnd_proc; | |
162 wc.lpszClassName = XEMACS_CONTROL_CLASS; | |
163 wc.hInstance = NULL; | |
164 RegisterClassEx (&wc); | |
165 #endif | |
166 | |
154 #ifdef HAVE_TOOLBARS | 167 #ifdef HAVE_TOOLBARS |
155 InitCommonControls (); | 168 InitCommonControls (); |
156 #endif | 169 #endif |
157 } | 170 } |
158 | 171 |