Rein Klazes : winecfg: Make the open file dialogs resizable.

Alexandre Julliard julliard at winehq.org
Wed May 6 10:33:14 CDT 2009


Module: wine
Branch: master
Commit: 64dbec13ef523efe46e6d9653e280a6c2b434875
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=64dbec13ef523efe46e6d9653e280a6c2b434875

Author: Rein Klazes <wijn at online.nl>
Date:   Wed May  6 08:41:14 2009 +0200

winecfg: Make the open file dialogs resizable.

---

 programs/winecfg/appdefaults.c |    3 ++-
 programs/winecfg/theme.c       |    2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/programs/winecfg/appdefaults.c b/programs/winecfg/appdefaults.c
index 28ec4fe..8e48949 100644
--- a/programs/winecfg/appdefaults.c
+++ b/programs/winecfg/appdefaults.c
@@ -319,7 +319,8 @@ static void on_add_app_click(HWND dialog)
   OPENFILENAMEW ofn = { sizeof(OPENFILENAMEW),
 		       0, /*hInst*/0, 0, NULL, 0, 0, NULL,
 		       0, NULL, 0, pathC, 0,
-		       OFN_SHOWHELP | OFN_HIDEREADONLY, 0, 0, NULL, 0, NULL };
+		       OFN_SHOWHELP | OFN_HIDEREADONLY | OFN_ENABLESIZING,
+                       0, 0, NULL, 0, NULL };
 
   LoadStringW (GetModuleHandle (NULL), IDS_SELECT_EXECUTABLE, selectExecutableStr,
       sizeof(selectExecutableStr)/sizeof(selectExecutableStr[0]));
diff --git a/programs/winecfg/theme.c b/programs/winecfg/theme.c
index 537a113..afbd6de 100644
--- a/programs/winecfg/theme.c
+++ b/programs/winecfg/theme.c
@@ -642,7 +642,7 @@ static void on_theme_install(HWND dialog)
   ofn.nMaxFileTitle = sizeof(filetitle)/sizeof(filetitle[0]);
   ofn.lpstrInitialDir = NULL;
   ofn.lpstrTitle = title;
-  ofn.Flags = OFN_FILEMUSTEXIST | OFN_PATHMUSTEXIST | OFN_HIDEREADONLY;
+  ofn.Flags = OFN_FILEMUSTEXIST | OFN_PATHMUSTEXIST | OFN_HIDEREADONLY | OFN_ENABLESIZING;
   ofn.nFileOffset = 0;
   ofn.nFileExtension = 0;
   ofn.lpstrDefExt = NULL;




More information about the wine-cvs mailing list