win32 (from <Someone>)

This patch is an improvement for menu/text dialogs.
This is a code carried over from Windows CE port. It changes
text and menu windows from "system popup" to plain "child"
windows of the main nethack window. Nethack main window can
now be resized/moved/minimized when menu/text window is up.
Menu/text windows will always stay inside the main window and
move along with it.

<Someone>
This commit is contained in:
nethack.allison
2002-08-28 04:53:50 +00:00
parent 081edea253
commit 71eb636e14
6 changed files with 93 additions and 66 deletions
+1 -1
View File
@@ -651,6 +651,7 @@ void mswin_layout_main_window(HWND changed_child)
TRUE );
break;
case NHW_TEXT: // same as the map window
case NHW_MAP:
MoveWindow(GetNHApp()->windowlist[i].win,
map_org.x,
@@ -675,7 +676,6 @@ void mswin_layout_main_window(HWND changed_child)
pt.x = map_org.x + max(0, (int)(map_size.cx-menu_size.cx));
pt.y = map_org.y;
ClientToScreen(GetNHApp()->hMainWnd, &pt);
MoveWindow(GetNHApp()->windowlist[i].win,
pt.x,
pt.y,