Commit 873b971b authored by Katayama Hirofumi MZ's avatar Katayama Hirofumi MZ Committed by Alexandre Julliard

notepad: Don't save maximized size.

parent 0abb8658
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment