summaryrefslogtreecommitdiff
path: root/plugins/Scriver/src/tabs.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-03-05 20:20:14 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-03-05 20:20:14 +0300
commit7e71db53bdd51a213e9262723d52957a0961793d (patch)
treee23f78dd8739580c739c45d6e1990f90e5d8c040 /plugins/Scriver/src/tabs.cpp
parent3c78e3b9659ea8903d46cdcc0d95288e65f50e0b (diff)
Scriver -> core splitters
also: - structure of Scriver SRMM classes redesigned to avoid problems with MS compilers; - unused cursors removed; - now splitter position is being saved & restored;
Diffstat (limited to 'plugins/Scriver/src/tabs.cpp')
-rw-r--r--plugins/Scriver/src/tabs.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/Scriver/src/tabs.cpp b/plugins/Scriver/src/tabs.cpp
index c3d6c11947..858e191cd1 100644
--- a/plugins/Scriver/src/tabs.cpp
+++ b/plugins/Scriver/src/tabs.cpp
@@ -748,6 +748,8 @@ static INT_PTR CALLBACK DlgProcParentWindow(HWND hwndDlg, UINT msg, WPARAM wPara
dat->windowWasCascaded = 0;
dat->bMinimized = 0;
dat->bVMaximized = 0;
+ dat->iSplitterX = db_get_dw(NULL, SRMMMOD, "splitterx", -1);
+ dat->iSplitterY = db_get_dw(NULL, SRMMMOD, "splittery", -1);
dat->flags2 = g_dat.flags2;
dat->hwndStatus = CreateWindowEx(0, STATUSCLASSNAME, NULL, WS_CHILD | WS_VISIBLE | SBARS_SIZEGRIP, 0, 0, 0, 0, hwndDlg, NULL, g_hInst, NULL);
dat->isChat = newData->isChat;
@@ -1118,6 +1120,10 @@ static INT_PTR CALLBACK DlgProcParentWindow(HWND hwndDlg, UINT msg, WPARAM wPara
TabCtrl_DeleteItem(dat->hwndTabs, i);
}
}
+
+ db_set_dw(NULL, SRMMMOD, "splitterx", dat->iSplitterX);
+ db_set_dw(NULL, SRMMMOD, "splittery", dat->iSplitterY);
+
SetWindowLongPtr(hwndDlg, GWLP_USERDATA, 0);
WindowList_Remove(g_dat.hParentWindowList, hwndDlg);
{