summaryrefslogtreecommitdiff
path: root/src/modules/clist/Docking.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-10-07 11:42:28 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-10-07 11:42:28 +0000
commit197fe77f67654cf8c46c53376190fc321176c08b (patch)
tree1a161cf7fb7968e3781b1d11771195d9b5e4c26c /src/modules/clist/Docking.cpp
parent4bcab3fc00696ca2daf1396bfc75bd49009644d6 (diff)
old database macros removed from m_database.h
git-svn-id: http://svn.miranda-ng.org/main/trunk@1796 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/clist/Docking.cpp')
-rw-r--r--src/modules/clist/Docking.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/modules/clist/Docking.cpp b/src/modules/clist/Docking.cpp
index 382794b9d7..c2aeafec93 100644
--- a/src/modules/clist/Docking.cpp
+++ b/src/modules/clist/Docking.cpp
@@ -150,8 +150,8 @@ int fnDocking_ProcessWindowMessage(WPARAM wParam, LPARAM lParam)
if (docked)
{
DBWriteContactSettingByte(NULL, "CList", "Docked", (BYTE) docked);
- DBWriteContactSettingDword(NULL, "CList", "DockX", (DWORD) dockPos.x);
- DBWriteContactSettingDword(NULL, "CList", "DockY", (DWORD) dockPos.y);
+ db_set_dw(NULL, "CList", "DockX", (DWORD) dockPos.x);
+ db_set_dw(NULL, "CList", "DockY", (DWORD) dockPos.y);
}
else
{
@@ -168,10 +168,10 @@ int fnDocking_ProcessWindowMessage(WPARAM wParam, LPARAM lParam)
{
case WM_CREATE:
draggingTitle = 0;
- docked = DBGetContactSettingByte(NULL, "CLUI", "DockToSides", 1) ?
- (char) DBGetContactSettingByte(NULL, "CList", "Docked", 0) : 0;
- dockPos.x = (int) DBGetContactSettingDword(NULL, "CList", "DockX", 0);
- dockPos.y = (int) DBGetContactSettingDword(NULL, "CList", "DockY", 0);
+ docked = db_get_b(NULL, "CLUI", "DockToSides", 1) ?
+ (char) db_get_b(NULL, "CList", "Docked", 0) : 0;
+ dockPos.x = (int) db_get_dw(NULL, "CList", "DockX", 0);
+ dockPos.y = (int) db_get_dw(NULL, "CList", "DockY", 0);
break;
case WM_ACTIVATE:
@@ -284,7 +284,7 @@ int fnDocking_ProcessWindowMessage(WPARAM wParam, LPARAM lParam)
if (((ptCursor.x < rcMonitor.left + EDGESENSITIVITY) ||
(ptCursor.x >= rcMonitor.right - EDGESENSITIVITY)) &&
- DBGetContactSettingByte(NULL, "CLUI", "DockToSides", 1))
+ db_get_b(NULL, "CLUI", "DockToSides", 1))
{
docked = (ptCursor.x < rcMonitor.left + EDGESENSITIVITY) ? DOCKED_LEFT : DOCKED_RIGHT;
PostMessage(msg->hwnd, WM_LBUTTONUP, 0, MAKELPARAM(ptCursor.x, ptCursor.y));
@@ -350,8 +350,8 @@ int fnDocking_ProcessWindowMessage(WPARAM wParam, LPARAM lParam)
PostMessage(msg->hwnd, WM_NCLBUTTONDOWN, HTCAPTION, MAKELPARAM(pt.x, pt.y));
SetWindowPos(msg->hwnd, 0, pt.x - rc.right / 2,
pt.y - GetSystemMetrics(SM_CYFRAME) - GetSystemMetrics(SM_CYSMCAPTION) / 2,
- DBGetContactSettingDword(NULL, "CList", "Width", 0),
- DBGetContactSettingDword(NULL, "CList", "Height", 0),
+ db_get_dw(NULL, "CList", "Width", 0),
+ db_get_dw(NULL, "CList", "Height", 0),
SWP_NOZORDER);
Docking_Command(msg->hwnd, ABM_REMOVE);
}