Ignore:
Timestamp:
May 17, 2001, 11:50:30 AM (24 years ago)
Author:
sandervl
Message:

destroy menu window after it has been used (instead of just hiding it)

File:
1 edited

Legend:

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

    r5685 r5725  
    1 /* $Id: win32dlg.cpp,v 1.62 2001-05-11 08:39:44 sandervl Exp $ */
     1/* $Id: win32dlg.cpp,v 1.63 2001-05-17 09:50:30 sandervl Exp $ */
    22/*
    33 * Win32 Dialog Code for OS/2
     
    253253
    254254        HWND hwndPreInitFocus = GetFocus();
    255         if(SendInternalMessageA(WM_INITDIALOG, (WPARAM)hwndFocus, param)) {
    256             SetFocus(hwndFocus);
     255        if(SendInternalMessageA(WM_INITDIALOG, (WPARAM)hwndFocus, param))
     256        {
     257            /* check where the focus is again,
     258             * some controls status might have changed in WM_INITDIALOG */
     259            hwndFocus = GetNextDlgTabItem( getWindowHandle(), 0, FALSE );
     260            if(GetFocus() != hwndFocus) {
     261                SetFocus(hwndFocus);
     262            }
    257263        }
    258264        else
     
    260266            /* If the dlgproc has returned FALSE (indicating handling of keyboard focus)
    261267               but the focus has not changed, set the focus where we expect it. */
    262                 if ( (getStyle() & WS_VISIBLE) && ( GetFocus() == hwndPreInitFocus ) )
    263                     SetFocus( hwndFocus );
     268            if ( (getStyle() & WS_VISIBLE) && ( GetFocus() == hwndPreInitFocus ) )
     269                SetFocus( hwndFocus );
    264270        }
    265271
Note: See TracChangeset for help on using the changeset viewer.