From 007b4c7301f0d26a72f89f74e9929f42e24eb3e6 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 5 Apr 2013 22:27:16 +0000 Subject: - rest of menus cleared; - old database macroses wiped out from all plugins (left in m_database.h for compatibility) git-svn-id: http://svn.miranda-ng.org/main/trunk@4324 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/BasicHistory/src/HistoryWindow.cpp | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'plugins/BasicHistory/src/HistoryWindow.cpp') diff --git a/plugins/BasicHistory/src/HistoryWindow.cpp b/plugins/BasicHistory/src/HistoryWindow.cpp index ea2e1edc69..e5cd9c7384 100644 --- a/plugins/BasicHistory/src/HistoryWindow.cpp +++ b/plugins/BasicHistory/src/HistoryWindow.cpp @@ -1776,7 +1776,7 @@ void HistoryWindow::ReloadContacts() HANDLE _hContact = db_find_first(); while(_hContact) { - if(EventList::GetContactMessageNumber(_hContact) && (metaContactProto == NULL || DBGetContactSettingByte(_hContact, metaContactProto, "IsSubcontact", 0) == 0)) + if(EventList::GetContactMessageNumber(_hContact) && (metaContactProto == NULL || db_get_b(_hContact, metaContactProto, "IsSubcontact", 0) == 0)) { HANDLE hItem = (HANDLE)SendMessage(contactList, CLM_FINDCONTACT, (WPARAM)_hContact, 0); if(hItem == NULL) @@ -1921,18 +1921,18 @@ void HistoryWindow::RestorePos() Utils_RestoreWindowPosition(hWnd,NULL,MODULE,"history_"); contactToLoad = NULL; } - if(DBGetContactSettingByte(contactToLoad, MODULE, "history_ismax", 0)) + if(db_get_b(contactToLoad, MODULE, "history_ismax", 0)) { ShowWindow(hWnd, SW_SHOWMAXIMIZED); } - LONG pos = DBGetContactSettingDword(contactToLoad, MODULE, "history_splitterv", 0); + LONG pos = db_get_dw(contactToLoad, MODULE, "history_splitterv", 0); if(pos > 0) { SplitterMoved(splitterYhWnd, pos, false); } - pos = DBGetContactSettingDword(contactToLoad, MODULE, "history_splitter", 0); + pos = db_get_dw(contactToLoad, MODULE, "history_splitter", 0); if(pos > 0) { SplitterMoved(splitterXhWnd, pos, false); @@ -1947,13 +1947,13 @@ void HistoryWindow::SavePos(bool all) HANDLE _hContact = db_find_first(); while(_hContact) { - DBDeleteContactSetting(_hContact, MODULE, "history_x"); - DBDeleteContactSetting(_hContact, MODULE, "history_y"); - DBDeleteContactSetting(_hContact, MODULE, "history_width"); - DBDeleteContactSetting(_hContact, MODULE, "history_height"); - DBDeleteContactSetting(_hContact, MODULE, "history_ismax"); - DBDeleteContactSetting(_hContact, MODULE, "history_splitterv"); - DBDeleteContactSetting(_hContact, MODULE, "history_splitter"); + db_unset(_hContact, MODULE, "history_x"); + db_unset(_hContact, MODULE, "history_y"); + db_unset(_hContact, MODULE, "history_width"); + db_unset(_hContact, MODULE, "history_height"); + db_unset(_hContact, MODULE, "history_ismax"); + db_unset(_hContact, MODULE, "history_splitterv"); + db_unset(_hContact, MODULE, "history_splitter"); _hContact = db_find_next(_hContact); } @@ -1964,9 +1964,9 @@ void HistoryWindow::SavePos(bool all) WINDOWPLACEMENT wp; wp.length=sizeof(wp); GetWindowPlacement(hWnd,&wp); - DBWriteContactSettingByte(contactToSave, MODULE, "history_ismax", wp.showCmd == SW_MAXIMIZE ? 1 : 0); - DBWriteContactSettingDword(contactToSave, MODULE, "history_splitterv", splitterX); - DBWriteContactSettingDword(contactToSave, MODULE, "history_splitter", splitterY); + db_set_b(contactToSave, MODULE, "history_ismax", wp.showCmd == SW_MAXIMIZE ? 1 : 0); + db_set_dw(contactToSave, MODULE, "history_splitterv", splitterX); + db_set_dw(contactToSave, MODULE, "history_splitter", splitterY); } #define DEF_FILTERS_START 50000 -- cgit v1.2.3