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

File:
1 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;
Note: See TracChangeset for help on using the changeset viewer.