- Timestamp:
- Feb 11, 2003, 3:20:01 PM (23 years ago)
- Location:
- trunk/src/user32
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/pmwindow.cpp
r9781 r9785 1 /* $Id: pmwindow.cpp,v 1.19 6 2003-02-10 18:31:45sandervl Exp $ */1 /* $Id: pmwindow.cpp,v 1.197 2003-02-11 14:20:01 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Managment Code for OS/2 … … 257 257 } /* End of main */ 258 258 //****************************************************************************** 259 #ifdef NEW_WGSS260 259 HBITMAP OPEN32API _O32_CreateBitmapFromPMHandle(HBITMAP hPMBitmap); 261 260 … … 270 269 return yyrc; 271 270 } 272 #endif273 271 //****************************************************************************** 274 272 static void QueryPMMenuBitmaps() … … 300 298 hbmFrameMenu[PMMENU_CLOSEBUTTONDOWN] = GpiLoadBitmap(hdc, hModDisplay, SBMP_CLOSEDEP, 0, 0); 301 299 302 #ifdef NEW_WGSS303 300 //Create win32 bitmap handles of the OS/2 min, max and restore buttons 304 301 hBmpMinButton = O32_CreateBitmapFromPMHandle(hbmFrameMenu[PMMENU_MINBUTTON]); … … 310 307 hBmpCloseButton = O32_CreateBitmapFromPMHandle(hbmFrameMenu[PMMENU_CLOSEBUTTON]); 311 308 hBmpCloseButtonDown = O32_CreateBitmapFromPMHandle(hbmFrameMenu[PMMENU_CLOSEBUTTONDOWN]); 312 #endif313 309 DevCloseDC(hdc); 314 310 } … … 714 710 HWND hwndFocus = (HWND)mp1; 715 711 716 dprintf(("OS2: WM_SETFOCUS %x %x (%x) %d ", win32wnd->getWindowHandle(), mp1, OS2ToWin32Handle(hwndFocus), mp2));712 dprintf(("OS2: WM_SETFOCUS %x %x (%x) %d cur focus %x", win32wnd->getWindowHandle(), mp1, OS2ToWin32Handle(hwndFocus), mp2, WinQueryFocus(HWND_DESKTOP))); 717 713 718 714 //PM doesn't allow SetFocus calls during WM_SETFOCUS message processing; … … 808 804 809 805 case WM_CHAR: 810 dprintf(("OS2: WM_CHAR %x %x %x, %x %x ", win32wnd->getWindowHandle(), mp1, mp2, pWinMsg->wParam, pWinMsg->lParam));806 dprintf(("OS2: WM_CHAR %x %x %x, %x %x focus wnd %x", win32wnd->getWindowHandle(), mp1, mp2, pWinMsg->wParam, pWinMsg->lParam, WinQueryFocus(HWND_DESKTOP))); 811 807 win32wnd->MsgChar(pWinMsg); 812 808 break; … … 1578 1574 // -> problems with update region if we don't do it 1579 1575 // todo: rewrite whole handling 1576 dprintf(("PMFRAME: WM_WINDOWPOSCHANGED invalidate all")); 1580 1577 WinInvalidateRect(hwnd,NULL,TRUE); 1581 1578 } … … 1764 1761 case WM_SETFOCUS: 1765 1762 { 1766 dprintf(("PMFRAME: WM_SETFOCUS %x %x ", win32wnd->getWindowHandle(), hwnd));1763 dprintf(("PMFRAME: WM_SETFOCUS %x %x %d -> %x", win32wnd->getWindowHandle(), hwnd, mp2, mp1)); 1767 1764 goto RunDefFrameWndProc; 1768 1765 } -
trunk/src/user32/win32wbase.cpp
r9783 r9785 1 /* $Id: win32wbase.cpp,v 1.35 6 2003-02-10 19:10:22sandervl Exp $ */1 /* $Id: win32wbase.cpp,v 1.357 2003-02-11 14:20:01 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 … … 1182 1182 //SvL: Calling OSLibSetActiveWindow(hwndTop); causes focus problems 1183 1183 if (win32top) { 1184 OSLibWinSetFocus(win32top->getOS2FrameWindowHandle()); 1184 //Must use client window handle (not frame!!) 1185 OSLibWinSetFocus(win32top->getOS2WindowHandle()); 1185 1186 RELEASE_WNDOBJ(win32top); 1186 1187 }
Note:
See TracChangeset
for help on using the changeset viewer.