Changeset 9523 for trunk/src/user32/mdi.c
- Timestamp:
- Dec 18, 2002, 1:28:08 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/mdi.c
r9437 r9523 91 91 #include "pmwindow.h" 92 92 #include <heapstring.h> 93 #define WIN_GetFullHandle(a) a 93 94 #include "ctrlconf.h" 94 95 #endif 95 96 … … 142 143 static HWND MDI_MoreWindowsDialog(HWND); 143 144 static void MDI_SwapMenuItems(HWND, UINT, UINT); 144 #ifdef __WIN32OS2__145 LRESULT WINAPI MDIClientWndProcA( HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam );146 LRESULT WINAPI MDIClientWndProcW( HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam );147 #else148 145 static LRESULT WINAPI MDIClientWndProcA( HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam ); 149 146 static LRESULT WINAPI MDIClientWndProcW( HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam ); 150 #endif151 147 152 148 /* -------- Miscellaneous service functions ---------- … … 181 177 182 178 183 #ifndef __WIN32OS2__184 179 /********************************************************************* 185 180 * MDIClient class descriptor … … 196 191 }; 197 192 193 #ifndef __WIN32OS2__ 198 194 static MDICLIENTINFO *get_client_info( HWND client ) 199 195 { … … 2379 2375 } 2380 2376 2381 #ifdef __WIN32OS2__2382 2383 #define MDICLIENTCLASSNAMEA "MDICLIENT"2384 #define MDICLIENTCLASSNAMEW L"MDICLIENT"2385 2386 //******************************************************************************2387 //******************************************************************************2388 BOOL MDICLIENT_Register()2389 {2390 WNDCLASSA wndClass;2391 2392 //SvL: Don't check this now2393 // if (GlobalFindAtomA(MDICLIENTCLASSNAMEA)) return FALSE;2394 2395 ZeroMemory(&wndClass,sizeof(WNDCLASSA));2396 wndClass.style = CS_GLOBALCLASS;2397 wndClass.lpfnWndProc = (WNDPROC)MDIClientWndProcA;2398 wndClass.cbClsExtra = 0;2399 wndClass.cbWndExtra = 0;2400 wndClass.hCursor = LoadCursorA(0,IDC_ARROWA);;2401 wndClass.hbrBackground = (HBRUSH)GetStockObject(GRAY_BRUSH);2402 wndClass.lpszClassName = MDICLIENTCLASSNAMEA;2403 2404 return RegisterClassA(&wndClass);2405 }2406 //******************************************************************************2407 //******************************************************************************2408 BOOL MDICLIENT_Unregister()2409 {2410 if (GlobalFindAtomA(MDICLIENTCLASSNAMEA))2411 return UnregisterClassA(MDICLIENTCLASSNAMEA,(HINSTANCE)NULL);2412 else return FALSE;2413 }2414 //******************************************************************************2415 //******************************************************************************2416 #endif
Note:
See TracChangeset
for help on using the changeset viewer.