Changeset 760 for trunk/src/user32/new/window.cpp
- Timestamp:
- Aug 31, 1999, 7:14:52 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/new/window.cpp
r750 r760 1 /* $Id: window.cpp,v 1.2 0 1999-08-31 10:36:24sandervl Exp $ */1 /* $Id: window.cpp,v 1.21 1999-08-31 17:14:52 sandervl Exp $ */ 2 2 /* 3 3 * Win32 window apis for OS/2 … … 19 19 #include <misc.h> 20 20 #include <win32wbase.h> 21 #include <win32wmdiclient.h> 21 22 #include <oslibwin.h> 22 23 #include <oslibgdi.h> … … 40 41 return CreateMDIWindowA(className, windowName, style, x, y, width, height, parent, instance, (LPARAM)data); 41 42 43 //TODO: According to the docs className can be a 16 bits atom 44 // Wine seems to assume it's a string though... 42 45 /* Find the class atom */ 43 46 if (!(classAtom = GlobalFindAtomA(className))) … … 66 69 cs.dwExStyle = exStyle; 67 70 dprintf(("CreateWindowExA: (%d,%d) (%d,%d), %x %x", x, y, width, height, style, exStyle)); 68 window = new Win32BaseWindow( &cs, classAtom, FALSE ); 71 72 //TODO: According to the docs className can be a 16 bits atom 73 // Wine seems to assume it's a string though... 74 if(!stricmp(className, MDICLIENTCLASSNAMEA)) { 75 window = (Win32BaseWindow *) new Win32MDIClientWindow(&cs, classAtom, FALSE); 76 } 77 else { 78 window = new Win32BaseWindow( &cs, classAtom, FALSE ); 79 } 69 80 if(window == NULL) 70 81 { … … 95 106 return CreateMDIWindowW(className, windowName, style, x, y, width, height, parent, instance, (LPARAM)data); 96 107 108 //TODO: According to the docs className can be a 16 bits atom 109 // Wine seems to assume it's a string though... 97 110 /* Find the class atom */ 98 111 if (!(classAtom = GlobalFindAtomW(className))) … … 120 133 cs.lpszClass = (LPSTR)className; 121 134 cs.dwExStyle = exStyle; 122 window = new Win32BaseWindow( &cs, classAtom, TRUE ); 135 136 //TODO: According to the docs className can be a 16 bits atom 137 // Wine seems to assume it's a string though... 138 if(!lstrcmpW(className, (LPWSTR)MDICLIENTCLASSNAMEW)) { 139 window = (Win32BaseWindow *) new Win32MDIClientWindow(&cs, classAtom, TRUE); 140 } 141 else { 142 window = new Win32BaseWindow( &cs, classAtom, TRUE ); 143 } 123 144 if(window == NULL) 124 145 {
Note:
See TracChangeset
for help on using the changeset viewer.