PATCH: Fix for Open common dialog box
mehmet yasar
myasar at free.fr
Thu Apr 18 04:37:10 CDT 2002
Hi,
I have just noted today that my previous patch called
"Fixes for Open common dialog box" was broken.
By mistake some code was not in the right place ...
Shame on me,
Mehmet
Changelog :
Now, we are really erasing WS_CAPTION style.
-------------- next part --------------
diff -ur CVS/wine/dlls/commdlg/filedlg95.c wine/wine/dlls/commdlg/filedlg95.c
--- CVS/wine/dlls/commdlg/filedlg95.c Tue Apr 16 11:38:24 2002
+++ wine/wine/dlls/commdlg/filedlg95.c Thu Apr 18 11:21:24 2002
@@ -653,6 +653,10 @@
{
case WM_INITDIALOG:
{
+ /* Hide caption since some program may leave it */
+ DWORD Style = GetWindowLongA(hwnd, GWL_STYLE);
+ if (Style & WS_CAPTION) SetWindowLongA(hwnd, GWL_STYLE, Style & (~WS_CAPTION));
+
fodInfos = (FileOpenDlgInfos *)lParam;
lParam = (LPARAM) fodInfos->ofnInfos;
ArrangeCtrlPositions(hwnd,GetParent(hwnd));
@@ -845,10 +849,6 @@
case WM_INITDIALOG:
{
FileOpenDlgInfos * fodInfos = (FileOpenDlgInfos *)lParam;
-
- /* Hide caption since some program may leave it */
- DWORD Style = GetWindowLongA(hwnd, GWL_STYLE);
- if (Style & WS_CAPTION) SetWindowLongA(hwnd, GWL_STYLE, Style & (~WS_CAPTION));
/* Adds the FileOpenDlgInfos in the property list of the dialog
so it will be easily accessible through a GetPropA(...) */
More information about the wine-patches
mailing list