Changeset 7762 for trunk/src/user32/win32wbase.cpp
- Timestamp:
- Jan 12, 2002, 10:58:36 AM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/win32wbase.cpp
r7734 r7762 1 /* $Id: win32wbase.cpp,v 1.3 09 2002-01-07 11:18:10sandervl Exp $ */1 /* $Id: win32wbase.cpp,v 1.310 2002-01-12 09:55:51 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 4 4 * 5 * Copyright 1998-200 1Sander van Leeuwen (sandervl@xs4all.nl)5 * Copyright 1998-2002 Sander van Leeuwen (sandervl@xs4all.nl) 6 6 * Copyright 1999 Daniela Engert (dani@ngrt.de) 7 7 * Copyright 1999-2000 Christoph Bratschi (cbratschi@datacomm.ch) … … 115 115 //****************************************************************************** 116 116 //****************************************************************************** 117 Win32BaseWindow::Win32BaseWindow(HWND hwndOS2, ULONG reserved)117 Win32BaseWindow::Win32BaseWindow(HWND hwndOS2, ATOM classAtom) 118 118 : GenericObject(&windows, &critsect), ChildWindow(&critsect) 119 119 { 120 Init(); 121 OS2Hwnd = hwndOS2; 120 Init(); 121 OS2Hwnd = OS2HwndFrame = hwndOS2; 122 123 /* Find the window class */ 124 windowClass = Win32WndClass::FindClass(NULL, (LPSTR)classAtom); 125 if (!windowClass) 126 { 127 char buffer[32]; 128 GlobalGetAtomNameA( classAtom, buffer, sizeof(buffer) ); 129 dprintf(("Bad class '%s'", buffer )); 130 DebugInt3(); 131 } 132 133 //Allocate window words 134 nrUserWindowBytes = windowClass->getExtraWndBytes(); 135 if(nrUserWindowBytes) { 136 userWindowBytes = (char *)_smalloc(nrUserWindowBytes); 137 memset(userWindowBytes, 0, nrUserWindowBytes); 138 } 139 140 WINPROC_SetProc((HWINDOWPROC *)&win32wndproc, windowClass->getWindowProc(), WINPROC_GetProcType(windowClass->getWindowProc()), WIN_PROC_WINDOW); 141 hInstance = NULL; 142 dwStyle = WS_VISIBLE; 143 dwOldStyle = dwStyle; 144 dwExStyle = 0; 122 145 } 123 146 //******************************************************************************
Note:
See TracChangeset
for help on using the changeset viewer.