- Timestamp:
- May 2, 2003, 7:18:57 PM (22 years ago)
- Location:
- trunk/src/user32
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/pmwindow.cpp
r10060 r10061 1 /* $Id: pmwindow.cpp,v 1.21 3 2003-05-02 15:33:15 sandervl Exp $ */1 /* $Id: pmwindow.cpp,v 1.214 2003-05-02 17:18:55 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Managment Code for OS/2 … … 1335 1335 dprintf(("WARNING: WM_ADJUSTWINDOWPOS with SWP_NOADJUST flag!!")); 1336 1336 break; 1337 } 1337 1338 } 1339 1340 //PF Pure flags should not cause any subsequent messages to win32 windows 1341 //we should route them to DefFrameWndProc and check highlight. 1342 1338 1343 if ((pswp->fl == SWP_FOCUSACTIVATE) || (pswp->fl == SWP_FOCUSDEACTIVATE)) 1339 1344 { 1340 dprintf(("Pure focus flags are not sent to win32 windows")); 1345 if (fOS2Look) 1346 { 1347 if(pswp->fl == SWP_FOCUSACTIVATE) 1348 { 1349 dprintf2(("TBM_QUERYHILITE returned %d", WinSendDlgItemMsg(hwnd, FID_TITLEBAR, TBM_QUERYHILITE, 0, 0))); 1350 WinSendDlgItemMsg(hwnd, FID_TITLEBAR, TBM_SETHILITE, (MPARAM)1, 0); 1351 } 1352 else 1353 { 1354 dprintf2(("TBM_QUERYHILITE returned %d", WinSendDlgItemMsg(hwnd, FID_TITLEBAR, TBM_QUERYHILITE, 0, 0))); 1355 WinSendDlgItemMsg(hwnd, FID_TITLEBAR, TBM_SETHILITE, 0, 0); 1356 } 1357 } 1341 1358 goto RunDefFrameWndProc; 1342 1359 } … … 1712 1729 goto RunDefFrameWndProc; 1713 1730 1731 //PF This is the final step of PM minimization - shoukd end up 1732 //in default handler 1733 if (win32wnd->getStyle() & WS_MINIMIZE_W && pswp->fl & SWP_MINIMIZE) 1734 goto RunDefFrameWndProc; 1735 1714 1736 PosChangedEnd: 1715 1737 rc = (MRESULT)FALSE; -
trunk/src/user32/win32wbase.cpp
r10060 r10061 1 /* $Id: win32wbase.cpp,v 1.37 0 2003-05-02 15:33:16sandervl Exp $ */1 /* $Id: win32wbase.cpp,v 1.371 2003-05-02 17:18:57 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 … … 1179 1179 { 1180 1180 if (getParent()) 1181 { 1182 POINTS pt = MAKEPOINTS(msg->lParam); 1183 POINT point; 1184 1185 point.x = pt.x; 1186 point.y = pt.y; 1187 MapWindowPoints(getWindowHandle(), getParent()->getWindowHandle(), &point, 1); 1188 NotifyParent(msg->message, msg->wParam, MAKELPARAM(point.x,point.y)); 1189 } 1181 NotifyParent(msg->message, msg->wParam, 0); 1190 1182 break; 1191 1183 } … … 2307 2299 parentwindow = window->getParent(); 2308 2300 if(parentwindow) { 2301 /* PF We should map points for each window accordingly! */ 2302 if (Msg == WM_LBUTTONDOWN || Msg == WM_MBUTTONDOWN || Msg == WM_RBUTTONDOWN) 2303 { 2304 POINTS pt = MAKEPOINTS(lParam); 2305 POINT point; 2306 2307 point.x = pt.x; 2308 point.y = pt.y; 2309 2310 MapWindowPoints(getWindowHandle(),parentwindow->getWindowHandle(), &point, 1); 2311 lParam = MAKELPARAM(point.x, point.y); 2312 } 2309 2313 SendMessageA(parentwindow->getWindowHandle(), WM_PARENTNOTIFY, MAKEWPARAM(Msg, getWindowId()), lParam ); 2310 2314 } 2315 2311 2316 } 2312 2317 else break;
Note:
See TracChangeset
for help on using the changeset viewer.