Changeset 3915

Show
Ignore:
Timestamp:
10/15/05 10:04:16 (3 years ago)
Author:
fujii
Message:

Fix a problem that a file dialog can not open directory after file
type is changed from All Files (*.*)' to Directories'. see
ticket:200.

* mw32fns.c (file_dialog_callback): Flags of open file dialog are
modified when file type is changed.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/ChangeLog.Meadow

    r3914 r3915  
     12005-10-15  Masayuki FUJII  <boochang@m4.kcn.ne.jp> 
     2 
     3        * mw32fns.c (file_dialog_callback): Flags of open file dialog are 
     4        modified when file type is changed. 
     5 
    162005-10-15  Kyotaro HORIGUCHI  <horiguti@meadowy.org> 
    27 
  • trunk/src/mw32fns.c

    r3912 r3915  
    45074507          if (notify->lpOFN->nFilterIndex == 2) 
    45084508            { 
     4509              if (notify->hdr.code == CDN_TYPECHANGE) 
     4510                notify->lpOFN->Flags &= ~OFN_FILEMUSTEXIST; 
     4511 
    45094512              CommDlg_OpenSave_SetControlText (dialog, FILE_NAME_TEXT_FIELD, 
    45104513                                               "Current Directory"); 
     
    45134516          else 
    45144517            { 
    4515               CommDlg_OpenSave_SetControlText (dialog, FILE_NAME_TEXT_FIELD, 
    4516                                                ""); 
     4518              if (notify->hdr.code == CDN_TYPECHANGE) 
     4519                { 
     4520                  if (notify->lpOFN->Flags & OFN_PATHMUSTEXIST) 
     4521                    notify->lpOFN->Flags |= OFN_FILEMUSTEXIST; 
     4522 
     4523                  /* Don't override default filename on init done.  */ 
     4524                  CommDlg_OpenSave_SetControlText (dialog, 
     4525                                                   FILE_NAME_TEXT_FIELD, ""); 
     4526                } 
    45174527              EnableWindow (edit_control, TRUE); 
    45184528            }