Changeset 3603 for trunk/src/user32/oslibmsgtranslate.cpp
- Timestamp:
- May 24, 2000, 9:30:08 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/oslibmsgtranslate.cpp
r3525 r3603 1 /* $Id: oslibmsgtranslate.cpp,v 1.3 0 2000-05-12 18:09:40sandervl Exp $ */1 /* $Id: oslibmsgtranslate.cpp,v 1.31 2000-05-24 19:30:05 sandervl Exp $ */ 2 2 /* 3 3 * Window message translation functions for OS/2 … … 189 189 //WM_NC*BUTTON* is posted when the cursor is in a non-client area of the window 190 190 191 #ifdef ODIN_HITTEST 192 //Send WM_HITTEST message 193 win32wnd->sendHitTest(MAKELONG(winMsg->pt.x,winMsg->pt.y)); 194 #endif 195 191 196 //if a window is disabled, it's parent receives the mouse messages 192 197 if(!win32wnd->IsWindowEnabled()) { … … 242 247 //WM_NCMOUSEMOVE is posted when the cursor moves into a non-client area of the window 243 248 249 #ifdef ODIN_HITTEST 250 //Send WM_HITTEST message 251 win32wnd->sendHitTest(MAKELONG(winMsg->pt.x,winMsg->pt.y)); 252 #endif 244 253 //if a window is disabled, it's parent receives the mouse messages 245 254 if(!win32wnd->IsWindowEnabled()) { … … 288 297 winMsg->message = WINWM_NCACTIVATE; 289 298 winMsg->wParam = SHORT1FROMMP(os2Msg->mp1); 299 290 300 return TRUE; 291 301 } … … 417 427 BOOL fMinimized = FALSE; 418 428 419 if(WinQueryWindowULong(hwndActivate, OFFSET_WIN32PM_MAGIC) != WIN32PM_MAGIC) { 429 hwndActivate = Win32BaseWindow::OS2ToWin32Handle(hwndActivate); 430 if(hwndActivate == 0) { 420 431 //another (non-win32) application's window 421 432 //set to desktop window handle 422 hwndActivate = windowDesktop->getWindowHandle(); 423 } 424 else hwndActivate = Win32BaseWindow::OS2ToWin32Handle(hwndActivate); 433 hwndActivate = windowDesktop->getWindowHandle(); 434 } 425 435 426 436 if(WinQueryWindowULong(os2Msg->hwnd, QWL_STYLE) & WS_MINIMIZED) … … 483 493 //WM_NC*BUTTON* is posted when the cursor is in a non-client area of the window 484 494 495 #ifdef ODIN_HITTEST 496 //Send WM_HITTEST message 497 win32wnd->sendHitTest(MAKELONG(winMsg->pt.x,winMsg->pt.y)); 498 #endif 499 485 500 //if a window is disabled, it's parent receives the mouse messages 486 501 if(!win32wnd->IsWindowEnabled()) { … … 535 550 { 536 551 //WM_NCMOUSEMOVE is posted when the cursor moves into a non-client area of the window 552 553 #ifdef ODIN_HITTEST 554 //Send WM_HITTEST message 555 win32wnd->sendHitTest(MAKELONG(winMsg->pt.x,winMsg->pt.y)); 556 #endif 537 557 538 558 //if a window is disabled, it's parent receives the mouse messages
Note:
See TracChangeset
for help on using the changeset viewer.