summaryrefslogtreecommitdiff
path: root/plugins/Clist_nicer/src/Docking.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2016-04-27 09:46:24 +0000
committerGeorge Hazan <george.hazan@gmail.com>2016-04-27 09:46:24 +0000
commitfdcee968da01c384608ea948d90a6a0ccf2d1771 (patch)
tree8acd5d1832ed83d0f279e605820e4aeaa762cd9f /plugins/Clist_nicer/src/Docking.cpp
parentf77b70a84c4609b9fef4a5e4a497f5845541c2de (diff)
code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@16771 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Clist_nicer/src/Docking.cpp')
-rw-r--r--plugins/Clist_nicer/src/Docking.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/Clist_nicer/src/Docking.cpp b/plugins/Clist_nicer/src/Docking.cpp
index c8078da592..ef68bea039 100644
--- a/plugins/Clist_nicer/src/Docking.cpp
+++ b/plugins/Clist_nicer/src/Docking.cpp
@@ -97,21 +97,21 @@ int Docking_ProcessWindowMessage(WPARAM wParam, LPARAM lParam)
MSG *msg = (MSG *)wParam;
if (msg->message == WM_DESTROY)
- cfg::writeByte("CList", "Docked", (BYTE)docked);
+ db_set_b(NULL, "CList", "Docked", (BYTE)docked);
if (!docked && msg->message != WM_CREATE && msg->message != WM_MOVING && msg->message != WM_CREATEDOCKED && msg->message != WM_MOVE)
return 0;
switch (msg->message) {
case WM_CREATE:
//if (GetSystemMetrics(SM_CMONITORS)>1) return 0;
- if (cfg::getByte("CList", "Docked", 0))
+ if (db_get_b(NULL, "CList", "Docked", 0))
PostMessage(msg->hwnd, WM_CREATEDOCKED, 0, 0);
draggingTitle = 0;
return 0;
case WM_CREATEDOCKED:
//we need to post a message just after creation to let main message function do some work
- docked = (int)(char)cfg::getByte("CList", "Docked", 0);
+ docked = (int)(char)db_get_b(NULL, "CList", "Docked", 0);
if (IsWindowVisible(msg->hwnd) && !IsIconic(msg->hwnd)) {
RECT rc, rcMonitor;
memset(&abd, 0, sizeof(abd));