Ignore:
Timestamp:
Apr 24, 2003, 3:59:15 PM (22 years ago)
Author:
sandervl
Message:

EndDialog: Enable owner window regardless of whether it was enabled before dialog creation & check for fake windows in GetWindowFromOS2Handle

File:
1 edited

Legend:

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

    r9526 r10033  
    1 /* $Id: win32dlg.cpp,v 1.80 2002-12-18 14:04:24 sandervl Exp $ */
     1/* $Id: win32dlg.cpp,v 1.81 2003-04-24 13:59:14 sandervl Exp $ */
    22/*
    33 * Win32 Dialog Code for OS/2
     
    2727#include <math.h>
    2828#include <unicode.h>
     29#include "user32api.h"
    2930
    3031#define DBG_LOCALLOG    DBG_win32dlg
     
    3435
    3536#define GET_SHORT(ptr)     (*(SHORT *)(ptr))
     37
    3638
    3739//******************************************************************************
     
    11371139    /* Windows sets the focus to the dialog itself in EndDialog */
    11381140
     1141#ifdef __WIN32OS2__
     1142    if (::IsChild(hwnd, GetFocus()))
     1143    {
     1144       ::SetFocus( hwnd );
     1145       //SvL: Enable the owner if the focus is on one of its children.
     1146       //     If we don't, then PM will switch focus to another app since
     1147       //     we hide the window below (hidden windows cannot have focus)
     1148       HWND owner = ::GetWindow( hwnd, GW_OWNER);
     1149       if(owner)
     1150           ::EnableWindow(owner, TRUE);
     1151    }
     1152#else
    11391153    if (::IsChild(hwnd, GetFocus()))
    11401154       ::SetFocus( hwnd );
     1155#endif
    11411156
    11421157    /* Don't have to send a ShowWindow(SW_HIDE), just do
Note: See TracChangeset for help on using the changeset viewer.