Katayama Hirofumi MZ : notepad: Don't save maximized size.

Alexandre Julliard julliard at winehq.org
Wed Oct 29 09:39:13 CDT 2008


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

Author: Katayama Hirofumi MZ <katayama.hirofumi.mz at gmail.com>
Date:   Fri Oct 24 21:10:11 2008 +0900

notepad: Don't save maximized size.

---

 programs/notepad/main.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/programs/notepad/main.c b/programs/notepad/main.c
index a9d3c3b..1751c90 100644
--- a/programs/notepad/main.c
+++ b/programs/notepad/main.c
@@ -119,8 +119,11 @@ static VOID NOTEPAD_SaveSettingToRegistry(void)
                 REG_OPTION_NON_VOLATILE, KEY_ALL_ACCESS, NULL, &hkey, &disp) == ERROR_SUCCESS)
     {
         DWORD data;
+        WINDOWPLACEMENT wndpl;
 
-        GetWindowRect(Globals.hMainWnd, &main_rect);
+        wndpl.length = sizeof(WINDOWPLACEMENT);
+        GetWindowPlacement(Globals.hMainWnd, &wndpl);
+        main_rect = wndpl.rcNormalPosition;
 
 #define SET_NOTEPAD_REG(hkey, value_name, value_data) do { DWORD data = (DWORD)(value_data); RegSetValueEx(hkey, value_name, 0, REG_DWORD, (LPBYTE)&data, sizeof(DWORD)); }while(0)
         SET_NOTEPAD_REG(hkey, value_fWrap,            Globals.bWrapLongLines);




More information about the wine-cvs mailing list