Changeset 9523 for trunk/src/user32/windowclass.cpp
- Timestamp:
- Dec 18, 2002, 1:28:08 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/windowclass.cpp
r7875 r9523 1 /* $Id: windowclass.cpp,v 1.2 5 2002-02-11 16:06:00sandervl Exp $ */1 /* $Id: windowclass.cpp,v 1.26 2002-12-18 12:28:08 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Class Code for OS/2 … … 80 80 LR_COPYFROMRESOURCE); 81 81 82 wclass = new Win32WndClass(&wc, FALSE);82 wclass = new Win32WndClass(&wc, WNDCLASS_ASCII); 83 83 if(wclass == NULL) { 84 84 dprintf(("ERROR: RegisterClassA winclass == NULL!")); … … 109 109 110 110 dprintf(("RegisterClassExA")); 111 wclass = new Win32WndClass((WNDCLASSEXA *)lpWndClass, FALSE);111 wclass = new Win32WndClass((WNDCLASSEXA *)lpWndClass, WNDCLASS_ASCII); 112 112 if(wclass == NULL) { 113 113 dprintf(("ERROR: RegisterClassExA winclass == NULL!")); … … 115 115 return(0); 116 116 } 117 ATOM atom = wclass->getAtom(); 118 RELEASE_CLASSOBJ(wclass); 119 return atom; 120 } 121 //****************************************************************************** 122 //Used for user32 control class registration only 123 //****************************************************************************** 124 ATOM WIN32API InternalRegisterClass(LPSTR lpszClassName, DWORD dwStyle, 125 WNDPROC pfnClassA, WNDPROC pfnClassW, 126 UINT cbExtraWindowWords, LPCSTR lpszCursor, 127 HBRUSH hBrush) 128 { 129 WNDCLASSEXA wc; 130 Win32WndClass *wclass; 131 132 wclass = Win32WndClass::FindClass(0, lpszClassName); 133 if(wclass) { 134 RELEASE_CLASSOBJ(wclass); 135 DebugInt3(); //this must never happen 136 dprintf(("ERROR: InternalRegisterClass %s already exists", lpszClassName)); 137 SetLastError(ERROR_CLASS_ALREADY_EXISTS); 138 return 0; 139 } 140 141 dprintf(("InternalRegisterClass %s %x %x %x %d %x %x", lpszClassName, dwStyle, pfnClassA, pfnClassW, cbExtraWindowWords, lpszCursor, hBrush)); 142 wc.cbSize = sizeof(wc); 143 wc.style = dwStyle; 144 wc.lpfnWndProc = pfnClassA; 145 wc.cbClsExtra = 0; 146 wc.cbWndExtra = cbExtraWindowWords; 147 wc.hInstance = NULL; 148 wc.hIcon = 0; 149 wc.hCursor = LoadCursorA(0, lpszCursor); 150 wc.hbrBackground = hBrush; 151 wc.lpszMenuName = NULL; 152 wc.lpszClassName = lpszClassName; 153 wc.hIconSm = 0; 154 155 wclass = new Win32WndClass(&wc, WNDCLASS_ASCII); 156 if(wclass == NULL) { 157 dprintf(("ERROR: InternalRegisterClass winclass == NULL!")); 158 DebugInt3(); 159 return(0); 160 } 161 wclass->setWindowProc(pfnClassW, WNDPROC_UNICODE); 117 162 ATOM atom = wclass->getAtom(); 118 163 RELEASE_CLASSOBJ(wclass); … … 154 199 155 200 dprintf(("RegisterClassW")); 156 winclass = new Win32WndClass((WNDCLASSEXA *)&wc, TRUE);201 winclass = new Win32WndClass((WNDCLASSEXA *)&wc, WNDCLASS_UNICODE); 157 202 if(winclass == NULL) { 158 203 dprintf(("ERROR: RegisterClassW winclass == NULL!")); … … 187 232 188 233 dprintf(("RegisterClassExW")); 189 winclass = new Win32WndClass((WNDCLASSEXA *)&wc, TRUE);234 winclass = new Win32WndClass((WNDCLASSEXA *)&wc, WNDCLASS_UNICODE); 190 235 if(winclass == NULL) { 191 236 dprintf(("ERROR: RegisterClassExW winclass == NULL!"));
Note:
See TracChangeset
for help on using the changeset viewer.