- Timestamp:
- Apr 1, 2001, 9:38:51 PM (24 years ago)
- Location:
- trunk/src/user32
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/pmwindow.cpp
r5404 r5428 1 /* $Id: pmwindow.cpp,v 1.12 1 2001-03-30 11:14:35sandervl Exp $ */1 /* $Id: pmwindow.cpp,v 1.122 2001-04-01 19:38:51 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Managment Code for OS/2 … … 1130 1130 { 1131 1131 dprintf(("OS2: WM_REALIZEPALETTE")); 1132 goto RunDefWndProc;1133 }1134 1135 case WM_OWNERPOSCHANGE:1136 {1137 dprintf(("OS2: WM_OWNERPOSCHANGE"));1138 1132 goto RunDefWndProc; 1139 1133 } … … 1248 1242 1249 1243 case WM_QUERYFOCUSCHAIN: 1250 dprintf(("OS2: WM_QUERYFOCUSCHAIN %x", win32wnd->getWindowHandle())); 1251 goto RunDefFrameWndProc; 1244 dprintf(("OS2: WM_QUERYFOCUSCHAIN %x fsCmd %x parent %x", win32wnd->getWindowHandle(), SHORT1FROMMP(mp1), mp2)); 1245 1246 RestoreOS2TIB(); 1247 rc = pfnFrameWndProc(hwnd, msg, mp1, mp2); 1248 SetWin32TIB(); 1249 dprintf(("OS2: WM_QUERYFOCUSCHAIN %x fsCmd %x parent %x returned %x", win32wnd->getWindowHandle(), SHORT1FROMMP(mp1), mp2, rc)); 1250 break; 1252 1251 1253 1252 case WM_FOCUSCHANGE: … … 1292 1291 1293 1292 dprintf(("OS2: WM_ADJUSTFRAMEPOS %x %x %x (%d,%d) (%d,%d)", win32wnd->getWindowHandle(), pswp->hwnd, pswp->fl, pswp->x, pswp->y, pswp->cx, pswp->cy)); 1293 goto RunDefFrameWndProc; 1294 } 1295 1296 case WM_OWNERPOSCHANGE: 1297 { 1298 PSWP pswp = (PSWP)mp1; 1299 1300 dprintf(("OS2: WM_OWNERPOSCHANGE %x %x %x (%d,%d) (%d,%d)", win32wnd->getWindowHandle(), pswp->hwnd, pswp->fl, pswp->x, pswp->y, pswp->cx, pswp->cy)); 1294 1301 goto RunDefFrameWndProc; 1295 1302 } -
trunk/src/user32/windowclass.cpp
r5406 r5428 1 /* $Id: windowclass.cpp,v 1.1 7 2001-03-30 22:08:20sandervl Exp $ */1 /* $Id: windowclass.cpp,v 1.18 2001-04-01 19:38:51 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Class Code for OS/2 … … 52 52 wc.hIconSm = 0; 53 53 54 //TODO: not destroyed when class is unregistered (neither does Wine, but that might be a bug)55 int iSmIconWidth = GetSystemMetrics(SM_CXSMICON);56 int iSmIconHeight = GetSystemMetrics(SM_CYSMICON);57 58 wc.hIconSm = CopyImage(wc.hIcon, IMAGE_ICON, iSmIconWidth, iSmIconHeight,59 LR_COPYFROMRESOURCE);60 61 54 if(Win32WndClass::FindClass(wc.hInstance, (LPSTR)wc.lpszClassName)) { 62 55 if(HIWORD(wc.lpszClassName)) { … … 68 61 } 69 62 63 //TODO: not destroyed when class is unregistered (neither does Wine, but that might be a bug) 64 int iSmIconWidth = GetSystemMetrics(SM_CXSMICON); 65 int iSmIconHeight = GetSystemMetrics(SM_CYSMICON); 66 67 wc.hIconSm = CopyImage(wc.hIcon, IMAGE_ICON, iSmIconWidth, iSmIconHeight, 68 LR_COPYFROMRESOURCE); 69 70 70 wclass = new Win32WndClass(&wc,FALSE); 71 71 if(wclass == NULL) { … … 114 114 memcpy(&wc.style, lpwc, sizeof(WNDCLASSA)); 115 115 116 //TODO: not destroyed when class is unregistered (neither does Wine, but that might be a bug)117 int iSmIconWidth = GetSystemMetrics(SM_CXSMICON);118 int iSmIconHeight = GetSystemMetrics(SM_CYSMICON);119 120 wc.hIconSm = CopyImage(wc.hIcon, IMAGE_ICON, iSmIconWidth, iSmIconHeight,121 LR_COPYFROMRESOURCE);122 123 116 if(Win32WndClass::FindClass(wc.hInstance, (LPWSTR)wc.lpszClassName)) { 124 117 if(HIWORD(wc.lpszClassName)) { … … 129 122 return 0; 130 123 } 124 125 //TODO: not destroyed when class is unregistered (neither does Wine, but that might be a bug) 126 int iSmIconWidth = GetSystemMetrics(SM_CXSMICON); 127 int iSmIconHeight = GetSystemMetrics(SM_CYSMICON); 128 129 wc.hIconSm = CopyImage(wc.hIcon, IMAGE_ICON, iSmIconWidth, iSmIconHeight, 130 LR_COPYFROMRESOURCE); 131 131 132 132 winclass = new Win32WndClass((WNDCLASSEXA *)&wc, TRUE);
Note:
See TracChangeset
for help on using the changeset viewer.