diff options
author | Mataes <mataes2007@gmail.com> | 2020-05-01 00:05:57 +0300 |
---|---|---|
committer | Mataes <mataes2007@gmail.com> | 2020-05-01 00:05:57 +0300 |
commit | 416fc2b16a3f36f327cddc6893c364aaec06172f (patch) | |
tree | 7af158134f21c1f40289ad552370a1cedcde15d4 /plugins | |
parent | 8dbfc5664dbbc27a9cd375e1f2ebefa1631c5960 (diff) |
newstory: time tree drawing
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/NewStory/src/history.cpp | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/plugins/NewStory/src/history.cpp b/plugins/NewStory/src/history.cpp index b3b9547ee9..f548c70b05 100644 --- a/plugins/NewStory/src/history.cpp +++ b/plugins/NewStory/src/history.cpp @@ -286,6 +286,7 @@ class CHistoryDlg : public CDlgBase w, hStatus, SWP_NOZORDER); + // search bar int hSearch = 0; if (m_dwOptions & WND_OPT_SEARCHBAR) { GetWindowRect(edtSearchText.GetHwnd(), &rc); @@ -308,9 +309,19 @@ class CHistoryDlg : public CDlgBase hSearch += WND_SPACING; } + // time tree bar + int hTimeTree = 0; + if (m_dwOptions & WND_OPT_TIMETREE) { + hTimeTree = 80; // need to calculate correctly + hDwp = DeferWindowPos(hDwp, m_timeTree.GetHwnd(), 0, + WND_SPACING, WND_SPACING + hToolBar + hFilterBar, + hTimeTree, h - WND_SPACING * 2 - hFilterBar - hToolBar - hSearch - hStatus, + SWP_NOZORDER); + } + hDwp = DeferWindowPos(hDwp, m_histControl.GetHwnd(), 0, - WND_SPACING, hToolBar + hFilterBar + WND_SPACING, - w - WND_SPACING * 2, h - WND_SPACING * 2 - hFilterBar - hToolBar - hSearch - hStatus, + WND_SPACING + hTimeTree, WND_SPACING + hToolBar + hFilterBar, + w - WND_SPACING * 2 - hTimeTree, h - WND_SPACING * 2 - hFilterBar - hToolBar - hSearch - hStatus, SWP_NOZORDER); EndDeferWindowPos(hDwp); |