Ignore:
Timestamp:
Jun 9, 2001, 4:50:26 PM (24 years ago)
Author:
sandervl
Message:

reference count (window + class objects) rewrite

File:
1 edited

Legend:

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

    r5404 r5935  
    1 /* $Id: win32wbasenonclient.cpp,v 1.30 2001-03-30 11:14:36 sandervl Exp $ */
     1/* $Id: win32wbasenonclient.cpp,v 1.31 2001-06-09 14:50:22 sandervl Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2 (non-client methods)
     
    2525#include <win32wbase.h>
    2626#include "wndmsg.h"
    27 #include "pmframe.h"
    2827#include "oslibwin.h"
    2928#include "oslibmsg.h"
     
    3736#include "win32wdesktop.h"
    3837#include "controls.h"
     38#include "pmwindow.h"
    3939#include <menu.h>
    4040
     
    262262    case HTCAPTION:
    263263    {
    264       Win32BaseWindow *topparent = GetTopParent();
     264      HWND hwndTopParent = GetTopParent();
    265265
    266266        if((getStyle() & WS_CHILD) && !(getExStyle() & WS_EX_MDICHILD))
    267267        {
    268             if (GetActiveWindow() != topparent->getWindowHandle())
     268            if (GetActiveWindow() != hwndTopParent)
    269269            {
    270270                //SvL: Calling topparent->SetActiveWindow() causes focus problems
    271                 topparent->SetActiveWindow();
     271                ::SetActiveWindow(hwndTopParent);
    272272////            OSLibWinSetFocus(topparent->getOS2WindowHandle());
    273273            }
    274             if (GetActiveWindow() == topparent->getWindowHandle())
     274            if (GetActiveWindow() == hwndTopParent)
    275275                 SendInternalMessageA(WM_SYSCOMMAND,SC_MOVE+HTCAPTION,lParam);
    276             else dprintf(("ACtive window (%x) != toplevel wnd %x", OSLibWinQueryActiveWindow(), topparent->getWindowHandle()));
     276            else dprintf(("ACtive window (%x) != toplevel wnd %x", OSLibWinQueryActiveWindow(), hwndTopParent));
    277277        }
    278278        else {
    279279            SetActiveWindow();
    280             if (GetActiveWindow() == topparent->getWindowHandle())
     280            if (GetActiveWindow() == hwndTopParent)
    281281                 SendInternalMessageA(WM_SYSCOMMAND,SC_MOVE+HTCAPTION,lParam);
    282282            else dprintf(("ACtive window (%x) != wnd %x", OSLibWinQueryActiveWindow(), getWindowHandle()));
Note: See TracChangeset for help on using the changeset viewer.