Update OFN_READONLY flag when closing file dialog.

This commit is contained in:
Wolfgang Schwotzer 2004-05-05 23:49:39 +00:00 committed by Alexandre Julliard
parent 5f27ca2085
commit bce73e4242
1 changed files with 6 additions and 0 deletions

View File

@ -1873,6 +1873,12 @@ BOOL FILEDLG95_OnOpen(HWND hwnd)
case ONOPEN_OPEN: /* fill in the return struct and close the dialog */
TRACE("ONOPEN_OPEN %s\n", debugstr_w(lpstrPathAndFile));
{
/* update READONLY check box flag */
if ((SendMessageA(GetDlgItem(hwnd,IDC_OPENREADONLY),BM_GETCHECK,0,0) & 0x03) == BST_CHECKED)
fodInfos->ofnInfos->Flags |= OFN_READONLY;
else
fodInfos->ofnInfos->Flags &= ~OFN_READONLY;
/* add default extension */
if (fodInfos->defext)
{