Ignore:
Timestamp:
Oct 21, 1999, 2:19:29 PM (26 years ago)
Author:
sandervl
Message:

wm_adjustwindowpos & combobox fixes

File:
1 edited

Legend:

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

    r1346 r1391  
    1 /* $Id: win32dlg.cpp,v 1.18 1999-10-17 20:18:45 sandervl Exp $ */
     1/* $Id: win32dlg.cpp,v 1.19 1999-10-21 12:19:27 sandervl Exp $ */
    22/*
    33 * Win32 Dialog Code for OS/2
     
    2020#include "oslibmsg.h"
    2121#include "win32wdesktop.h"
     22#include "controls.h"
    2223
    2324#define DEFAULT_DLGFONT "9.WarpSans"
     
    770771        if (hwndCurFocus)
    771772        {
    772 #if 0
    773             WND *wnd = WIN_FindWndPtr( hwndFocus );
    774 
    775             if( wnd )
     773            Win32BaseWindow *wndFocus = Win32BaseWindow::GetWindowFromHandle(hwndFocus);
     774
     775            if(wndFocus)
    776776            {
    777777                /* always make combo box hide its listbox control */
    778                 if( WIDGETS_IsControl( wnd, BIC32_COMBO ) )
    779                     SendMessageA( hwndFocus, CB_SHOWDROPDOWN, FALSE, 0 );
     778                if( WIDGETS_IsControl( wndFocus, COMBOBOX_CONTROL ) )
     779                    wndFocus->SendMessageA(CB_SHOWDROPDOWN, FALSE, 0 );
    780780                else
    781                 if( WIDGETS_IsControl( wnd, BIC32_EDIT ) &&
    782                     WIDGETS_IsControl( wnd->parent, BIC32_COMBO ))
    783                     SendMessageA(CB_SHOWDROPDOWN, FALSE, 0 );
     781                if( WIDGETS_IsControl( wndFocus, EDIT_CONTROL ) &&
     782                    WIDGETS_IsControl( wndFocus->getParent(), COMBOBOX_CONTROL ))
     783                    wndFocus->SendMessageA(CB_SHOWDROPDOWN, FALSE, 0 );
    784784            }
    785 #endif
    786785        }
    787786        return DefWindowProcA( msg, wParam, lParam );
Note: See TracChangeset for help on using the changeset viewer.