Filedialog: Update OFN_READONLY
woschwot at gmx.net
woschwot at gmx.net
Wed May 5 10:21:23 CDT 2004
ChangeLog: Update OFN_READONLY flag when closing FileDialog
-------------- next part --------------
Index: dlls/commdlg/filedlg.c
===================================================================
RCS file: /home/wine/wine/dlls/commdlg/filedlg.c,v
retrieving revision 1.78
diff -u -r1.78 filedlg.c
--- dlls/commdlg/filedlg.c 3 May 2004 20:09:09 -0000 1.78
+++ dlls/commdlg/filedlg.c 5 May 2004 20:11:14 -0000
@@ -1873,6 +1873,13 @@
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 (((int)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)
{
More information about the wine-patches
mailing list