Changeset 2452 for trunk/src


Ignore:
Timestamp:
Jan 15, 2000, 6:27:20 PM (26 years ago)
Author:
sandervl
Message:

child window system menu + titlebar tracking bugfixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/new/win32wbasenonclient.cpp

    r2449 r2452  
    1 /* $Id: win32wbasenonclient.cpp,v 1.11 2000-01-15 16:37:12 sandervl Exp $ */
     1/* $Id: win32wbasenonclient.cpp,v 1.12 2000-01-15 17:27:20 sandervl Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2 (non-client methods)
     
    245245  {
    246246    case HTCAPTION:
    247       if (GetActiveWindow() != Win32Hwnd)
    248         SetActiveWindow();
    249 
    250       if (GetActiveWindow() == Win32Hwnd)
     247    {
     248      Win32BaseWindow *topparent = GetTopParent();
     249
     250      if (GetActiveWindow() != topparent->getWindowHandle())
     251        topparent->SetActiveWindow();
     252
     253      if (GetActiveWindow() == topparent->getWindowHandle())
    251254        SendInternalMessageA(WM_SYSCOMMAND,SC_MOVE+HTCAPTION,lParam);
    252255      break;
     256    }
    253257
    254258    case HTSYSMENU:
     
    650654          GetInsideRect(rect );
    651655          OffsetRect( rect, rectWindow.left, rectWindow.top);
    652           if ((dwStyle & WS_CHILD) && getParent())
    653               ClientToScreen(getParent()->getWindowHandle(), (POINT *)rect );
    654656          rect->right = rect->left + GetSystemMetrics(SM_CYCAPTION) - 1;
    655657          rect->bottom = rect->top + GetSystemMetrics(SM_CYCAPTION) - 1;
Note: See TracChangeset for help on using the changeset viewer.