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:
+1
-1
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user