Ignore:
Timestamp:
May 24, 2000, 9:30:08 PM (25 years ago)
Author:
sandervl
Message:

experimental WM_NCHITTEST generation (disabled) + MDI fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/oslibmsgtranslate.cpp

    r3525 r3603  
    1 /* $Id: oslibmsgtranslate.cpp,v 1.30 2000-05-12 18:09:40 sandervl Exp $ */
     1/* $Id: oslibmsgtranslate.cpp,v 1.31 2000-05-24 19:30:05 sandervl Exp $ */
    22/*
    33 * Window message translation functions for OS/2
     
    189189        //WM_NC*BUTTON* is posted when the cursor is in a non-client area of the window
    190190
     191#ifdef ODIN_HITTEST
     192        //Send WM_HITTEST message
     193        win32wnd->sendHitTest(MAKELONG(winMsg->pt.x,winMsg->pt.y));
     194#endif
     195
    191196        //if a window is disabled, it's parent receives the mouse messages
    192197        if(!win32wnd->IsWindowEnabled()) {
     
    242247        //WM_NCMOUSEMOVE is posted when the cursor moves into a non-client area of the window
    243248
     249#ifdef ODIN_HITTEST
     250        //Send WM_HITTEST message
     251        win32wnd->sendHitTest(MAKELONG(winMsg->pt.x,winMsg->pt.y));
     252#endif
    244253        //if a window is disabled, it's parent receives the mouse messages
    245254        if(!win32wnd->IsWindowEnabled()) {
     
    288297        winMsg->message = WINWM_NCACTIVATE;
    289298        winMsg->wParam  = SHORT1FROMMP(os2Msg->mp1);
     299
    290300        return TRUE;
    291301      }
     
    417427      BOOL fMinimized = FALSE;
    418428
    419         if(WinQueryWindowULong(hwndActivate, OFFSET_WIN32PM_MAGIC) != WIN32PM_MAGIC) {
     429        hwndActivate = Win32BaseWindow::OS2ToWin32Handle(hwndActivate);
     430        if(hwndActivate == 0) {
    420431                //another (non-win32) application's window
    421432                //set to desktop window handle
    422                 hwndActivate = windowDesktop->getWindowHandle();
    423         }
    424         else    hwndActivate = Win32BaseWindow::OS2ToWin32Handle(hwndActivate);
     433                hwndActivate = windowDesktop->getWindowHandle();
     434        }
    425435
    426436        if(WinQueryWindowULong(os2Msg->hwnd, QWL_STYLE) & WS_MINIMIZED)
     
    483493        //WM_NC*BUTTON* is posted when the cursor is in a non-client area of the window
    484494
     495#ifdef ODIN_HITTEST
     496        //Send WM_HITTEST message
     497        win32wnd->sendHitTest(MAKELONG(winMsg->pt.x,winMsg->pt.y));
     498#endif
     499
    485500        //if a window is disabled, it's parent receives the mouse messages
    486501        if(!win32wnd->IsWindowEnabled()) {
     
    535550    {
    536551        //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
    537557
    538558        //if a window is disabled, it's parent receives the mouse messages
Note: See TracChangeset for help on using the changeset viewer.