From c46958a129a1d36dd07c6805fb39cc7d6c89b124 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 15 Nov 2023 19:57:36 +0300 Subject: fixes #3932 (NewStory: fix for resizer) --- plugins/NewStory/res/resource.rc | 9 +++++++++ plugins/NewStory/src/history_dlg.cpp | 6 +++--- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/plugins/NewStory/res/resource.rc b/plugins/NewStory/res/resource.rc index 751b909cf0..9cbb0b2603 100644 --- a/plugins/NewStory/res/resource.rc +++ b/plugins/NewStory/res/resource.rc @@ -179,6 +179,10 @@ END #ifdef APSTUDIO_INVOKED GUIDELINES DESIGNINFO BEGIN + IDD_HISTORY, DIALOG + BEGIN + END + IDD_CALENDARTOOL, DIALOG BEGIN END @@ -286,6 +290,11 @@ BEGIN 0 END +IDD_HISTORY AFX_DIALOG_LAYOUT +BEGIN + 0 +END + #endif // Neutral resources ///////////////////////////////////////////////////////////////////////////// diff --git a/plugins/NewStory/src/history_dlg.cpp b/plugins/NewStory/src/history_dlg.cpp index 874e098ce7..e681aaf958 100644 --- a/plugins/NewStory/src/history_dlg.cpp +++ b/plugins/NewStory/src/history_dlg.cpp @@ -783,9 +783,9 @@ public: hDwp = DeferWindowPos(hDwp, splitTime.GetHwnd(), 0, hTimeTree, iClientTop, WND_SPACING, iClientBottom, SWP_NOZORDER | SWP_NOACTIVATE); if (bShowTime && bShowBookmarks) { - int hMiddle = (iClientBottom - iClientTop) / 2; - hDwp = DeferWindowPos(hDwp, m_timeTree.GetHwnd(), 0, WND_SPACING, iClientTop, hTimeTree - WND_SPACING, iClientTop + hMiddle, SWP_NOZORDER | SWP_NOACTIVATE); - hDwp = DeferWindowPos(hDwp, m_bookmarks.GetHwnd(), 0, WND_SPACING, iClientTop + hMiddle, hTimeTree - WND_SPACING, iClientBottom, SWP_NOZORDER | SWP_NOACTIVATE); + int hMiddle = iClientBottom / 2; + hDwp = DeferWindowPos(hDwp, m_timeTree.GetHwnd(), 0, WND_SPACING, iClientTop, hTimeTree - WND_SPACING, hMiddle, SWP_NOZORDER | SWP_NOACTIVATE); + hDwp = DeferWindowPos(hDwp, m_bookmarks.GetHwnd(), 0, WND_SPACING, iClientTop + hMiddle, hTimeTree - WND_SPACING, hMiddle, SWP_NOZORDER | SWP_NOACTIVATE); } else if (bShowTime) hDwp = DeferWindowPos(hDwp, m_timeTree.GetHwnd(), 0, WND_SPACING, iClientTop, hTimeTree - WND_SPACING, iClientBottom, SWP_NOZORDER | SWP_NOACTIVATE); -- cgit v1.2.3