Changeset 2400 for trunk/src/user32/new/pmframe.cpp
- Timestamp:
- Jan 11, 2000, 12:29:16 AM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/new/pmframe.cpp
r2381 r2400 1 /* $Id: pmframe.cpp,v 1. 9 2000-01-09 14:14:23 cbratschiExp $ */1 /* $Id: pmframe.cpp,v 1.10 2000-01-10 23:29:13 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Frame Managment Code for OS/2 … … 193 193 } 194 194 195 case WM_HITTEST:196 {197 DWORD res;198 199 // Only send this message if the window is enabled200 if (!win32wnd->IsWindowCreated())201 res = HT_NORMAL;202 else if (!WinIsWindowEnabled(hwnd))203 res = HT_ERROR;204 else if (win32wnd->getIgnoreHitTest())205 res = HT_NORMAL;206 else207 {208 dprintf(("PMFRAME: WM_HITTEST %x (%d,%d)",hwnd,(*(POINTS *)&mp1).x,(*(POINTS *)&mp1).y));209 210 //CB: WinWindowFromPoint: PM sends WM_HITTEST -> loop -> stack overflow211 win32wnd->setIgnoreHitTest(TRUE);212 res = win32wnd->MsgHitTest(pWinMsg);213 win32wnd->setIgnoreHitTest(FALSE);214 }215 RestoreOS2TIB();216 return (MRESULT)res;217 }218 219 195 case WM_PAINT: 220 196 { … … 383 359 if (topOwner) WinSetWindowPos(topOwner->getOS2FrameWindowHandle(),hwnd,0,0,0,0,SWP_ZORDER); 384 360 } 385 } else 361 } 362 else 386 363 { 387 364 WinSetWindowUShort(hwnd,QWS_FLAGS,mp1 ? (flags | FF_ACTIVE):(flags & ~FF_ACTIVE)); 388 365 } 366 if(win32wnd->IsWindowCreated()) 367 win32wnd->DispatchMsgA(pWinMsg); 389 368 390 369 RestoreOS2TIB();
Note:
See TracChangeset
for help on using the changeset viewer.