diff mm7_2.cpp @ 1706:7153ee05d088

Fixed window shrink due to menu
author Nomad
date Mon, 23 Sep 2013 22:58:32 +0200
parents 51c63e03e856
children c6fe09a06712
line wrap: on
line diff
--- a/mm7_2.cpp	Sun Sep 22 20:38:24 2013 +0600
+++ b/mm7_2.cpp	Mon Sep 23 22:58:32 2013 +0200
@@ -4295,6 +4295,10 @@
   int window_total_width = client_width + window_borders_width,
       window_total_height = client_height + window_borders_height;
 
+  
+  if (GetMenu(hwnd))
+    window_total_height += GetSystemMetrics(SM_CYMENU);
+
   MoveWindow(hWnd, (GetSystemMetrics(SM_CXSCREEN) - window_total_width) / 2,
                    (GetSystemMetrics(SM_CYSCREEN) - window_total_height) / 2,
                    window_total_width,
@@ -5111,6 +5115,7 @@
 bool MM_Main(const wchar_t *pCmdLine)
 {
   IntegrityTest();
+
   char test[1024];
   sprintfex(test, "^Pi[%s]: знахар^R[ь;ка;]", "Золтан");