Changeset 5440 for trunk/src/user32


Ignore:
Timestamp:
Apr 2, 2001, 7:30:58 PM (24 years ago)
Author:
sandervl
Message:

DS_CONTROL fix + workaround for file open dialog in showwindow

Location:
trunk/src/user32
Files:
2 edited

Legend:

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

    r5429 r5440  
    1 /* $Id: win32dlg.cpp,v 1.59 2001-04-01 22:13:27 sandervl Exp $ */
     1/* $Id: win32dlg.cpp,v 1.60 2001-04-02 17:30:58 sandervl Exp $ */
    22/*
    33 * Win32 Dialog Code for OS/2
     
    186186    cs.dwExStyle      = dlgInfo.exStyle;
    187187    if (dlgInfo.style & DS_CONTEXTHELP) cs.dwExStyle |= WS_EX_CONTEXTHELP;
     188
     189    //Mask away WS_CAPTION style for dialogs with DS_CONTROL style
     190    //(necessary for OFN_ENABLETEMPLATE file open dialogs)
     191    //(verified this behaviour in NT4, SP6)
     192    if (dlgInfo.style & DS_CONTROL)     cs.style &= ~(WS_CAPTION);
    188193
    189194    fIsDialog = TRUE;
  • trunk/src/user32/win32wbase.cpp

    r5429 r5440  
    1 /* $Id: win32wbase.cpp,v 1.248 2001-04-01 22:13:27 sandervl Exp $ */
     1/* $Id: win32wbase.cpp,v 1.249 2001-04-02 17:30:58 sandervl Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    14251425        {
    14261426            setStyle(getStyle() | WS_VISIBLE);
     1427            dprintf(("Enable window update for %x", getWindowHandle()));
    14271428            OSLibWinEnableWindowUpdate(OS2Hwnd,TRUE);
    14281429        }
     
    14321433            {
    14331434                setStyle(getStyle() & ~WS_VISIBLE);
     1435                dprintf(("Disable window update for %x", getWindowHandle()));
    14341436                OSLibWinEnableWindowUpdate(OS2Hwnd,FALSE);
    14351437            }
     
    22942296        SendInternalMessageA(WM_MOVE,0,MAKELONG(rectClient.left,rectClient.top));
    22952297    }
     2298//testestest
     2299    //temporary workaround for file dialogs with template dialog child
     2300    //they don't redraw when switching directories
     2301    //For some reason the new child's (syslistview32) update rectangle stays
     2302    //empty after its parent is made visible with ShowWindow
     2303    //TODO: find real cause
     2304    if(!wasVisible) {
     2305        InvalidateRect(getWindowHandle(), NULL, TRUE);
     2306    }
     2307//testestest
    22962308END:
    22972309    fMinMaxChange = FALSE;
Note: See TracChangeset for help on using the changeset viewer.