Changeset 2076 for trunk/src/user32/win32wbase.cpp
- Timestamp:
- Dec 14, 1999, 8:13:20 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/win32wbase.cpp
r2040 r2076 1 /* $Id: win32wbase.cpp,v 1.1 09 1999-12-09 10:59:04sandervl Exp $ */1 /* $Id: win32wbase.cpp,v 1.110 1999-12-14 19:13:19 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 … … 147 147 fCreated = FALSE; 148 148 fTaskList = FALSE; 149 fParentDC = FALSE; 149 150 150 151 windowNameA = NULL; … … 270 271 BOOL Win32BaseWindow::IsWindowUnicode() 271 272 { 273 // dprintf2(("IsWindowUnicode %x %d", getWindowHandle(), WINPROC_GetProcType(getWindowProc()) == WIN_PROC_32W)); 272 274 return (WINPROC_GetProcType(getWindowProc()) == WIN_PROC_32W); 273 275 } … … 440 442 } 441 443 442 WINPROC_SetProc((HWINDOWPROC *)&win32wndproc, windowClass->getWindowProc(), (isUnicode) ? WIN_PROC_32W : WIN_PROC_32A, WIN_PROC_WINDOW);444 WINPROC_SetProc((HWINDOWPROC *)&win32wndproc, windowClass->getWindowProc(), WINPROC_GetProcType(windowClass->getWindowProc()), WIN_PROC_WINDOW); 443 445 hInstance = cs->hInstance; 444 446 dwStyle = cs->style & ~WS_VISIBLE; … … 634 636 if(windowClass->getStyle() & CS_OWNDC) { 635 637 dprintf(("Class with CS_OWNDC style")); 636 // ownDC = GetWindowDC(getWindowHandle());638 // ownDC = GetWindowDC(getWindowHandle()); 637 639 } 638 640 else 639 641 if (windowClass->getStyle() & CS_PARENTDC) { 640 642 dprintf(("ERROR: Class with CS_PARENTDC style -> NOT IMPLEMENTED!")); 643 fParentDC = TRUE; 641 644 ownDC = 0; 642 645 } … … 1221 1224 } 1222 1225 //****************************************************************************** 1226 //TODO: Depending on menu type, we should send WM_INITMENU or WM_INITPOPUPMENU 1227 //TODO: PM sends it for each submenu that gets activated; Windows only for the first 1228 // submenu; once the menu bar is active, moving the cursor doesn't generate other 1229 // WM_INITMENU msgs. Not really a problem, but might need to fix this later on. 1230 //****************************************************************************** 1231 void Win32BaseWindow::MsgInitMenu(HWND hMenu) 1232 { 1233 SendInternalMessageA(WM_INITMENU, (WPARAM)hMenu, 0); 1234 } 1235 //****************************************************************************** 1223 1236 //****************************************************************************** 1224 1237 ULONG Win32BaseWindow::MsgPaint(ULONG tmp1, BOOL select) … … 2223 2236 if(parentwindow) { 2224 2237 if(Msg == WM_CREATE || Msg == WM_DESTROY) { 2225 parentwindow->SendMessageA(WM_PARENTNOTIFY, MAKEWPARAM(Msg, window->getWindowId()), (LPARAM)window->getWindowHandle());2238 parentwindow->SendMessageA(WM_PARENTNOTIFY, MAKEWPARAM(Msg, getWindowId()), (LPARAM)getWindowHandle()); 2226 2239 } 2227 else parentwindow->SendMessageA(WM_PARENTNOTIFY, MAKEWPARAM(Msg, window->getWindowId()), lParam );2240 else parentwindow->SendMessageA(WM_PARENTNOTIFY, MAKEWPARAM(Msg, getWindowId()), lParam ); 2228 2241 } 2229 2242 } … … 2974 2987 LONG oldval; 2975 2988 2976 dprintf2(("SetWindowLong A %x %d %x", getWindowHandle(), index, value));2989 dprintf2(("SetWindowLong%c %x %d %x", (fUnicode) ? 'W' : 'A', getWindowHandle(), index, value)); 2977 2990 switch(index) { 2978 2991 case GWL_EXSTYLE:
Note:
See TracChangeset
for help on using the changeset viewer.