win32 bits for main trunk (from <Someone>)

- set correct checkmark on "Lock Windows" menu item on startup
- redraw message window on resizing (it does not update properly otherwise)
- fixed copy/paste error in read registry settings function
This commit is contained in:
nethack.allison
2003-08-20 11:39:57 +00:00
parent 48ab2a434c
commit 1fd577124b
4 changed files with 19 additions and 4 deletions

View File

@@ -188,6 +188,15 @@ LRESULT CALLBACK MainWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lPar
data->mapAcsiiModeSave = MAP_MODE_ASCII12x16;
SetWindowLong(hWnd, GWL_USERDATA, (LONG)data);
/* update menu items */
CheckMenuItem(
GetMenu(hWnd),
IDM_SETTING_LOCKWINDOWS,
MF_BYCOMMAND |
(GetNHApp()->bWindowsLocked? MF_CHECKED : MF_UNCHECKED)
);
/* store handle to the mane menu in the application record */
GetNHApp()->hMainWnd = hWnd;
break;