summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM/src/buttonsbar.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-06-27 15:34:33 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-06-27 15:34:33 +0000
commitb48741c8d0ed916d2cdd41956667ec4082ab245a (patch)
tree1d0e149514343e602495e85861649e173324fd01 /plugins/TabSRMM/src/buttonsbar.cpp
parentb1d29a5793fc80dd1c0d26e4ba900853fad41809 (diff)
obsolete helpers removed
git-svn-id: http://svn.miranda-ng.org/main/trunk@5152 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM/src/buttonsbar.cpp')
-rw-r--r--plugins/TabSRMM/src/buttonsbar.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/plugins/TabSRMM/src/buttonsbar.cpp b/plugins/TabSRMM/src/buttonsbar.cpp
index 379c01ba03..f0449c61d5 100644
--- a/plugins/TabSRMM/src/buttonsbar.cpp
+++ b/plugins/TabSRMM/src/buttonsbar.cpp
@@ -139,7 +139,7 @@ void CB_InitCustomButtons()
LButtonsList = List_Create(0, 1);
RButtonsList = List_Create(0, 1);
InitializeCriticalSection(&ToolBarCS);
- dwSepCount = M->GetDword("TabSRMM_Toolbar", "SeparatorsCount", 0);
+ dwSepCount = M.GetDword("TabSRMM_Toolbar", "SeparatorsCount", 0);
//dwSepCount = db_get_dw(NULL, "TabSRMM_Toolbar", "SeparatorsCount", 0);
@@ -246,13 +246,13 @@ void CB_ReInitCustomButtons()
i--;
}
}
- M->BroadcastMessage(DM_BBNEEDUPDATE, 0, 0);
- M->BroadcastMessage(DM_LOADBUTTONBARICONS, 0, 0);
+ M.BroadcastMessage(DM_BBNEEDUPDATE, 0, 0);
+ M.BroadcastMessage(DM_LOADBUTTONBARICONS, 0, 0);
}
void CB_HardReInit()
{
- M->BroadcastMessage(DM_CBDESTROY, 0, 0);
+ M.BroadcastMessage(DM_CBDESTROY, 0, 0);
EnterCriticalSection(&ToolBarCS);
li_ListDestruct(LButtonsList, listdestructor);
li_ListDestruct(RButtonsList, listdestructor);
@@ -322,7 +322,7 @@ static INT_PTR CB_AddButton(WPARAM wParam, LPARAM lParam)
if (cbd->dwArrowCID == LastCID)
LastCID++;
- M->BroadcastMessage(DM_BBNEEDUPDATE, 0, 0);
+ M.BroadcastMessage(DM_BBNEEDUPDATE, 0, 0);
return 0;
}
@@ -351,7 +351,7 @@ static INT_PTR CB_GetButtonState(WPARAM wParam, LPARAM lParam)
}
if (!realbutton) return 1;
- hwndDlg = M->FindWindow((HANDLE)wParam);
+ hwndDlg = M.FindWindow((HANDLE)wParam);
bbdi->bbbFlags = (IsDlgButtonChecked(hwndDlg, tempCID) ? BBSF_PUSHED : BBSF_RELEASED) | (IsWindowVisible(GetDlgItem(hwndDlg, tempCID)) ? 0 : BBSF_HIDDEN) | (IsWindowEnabled(GetDlgItem(hwndDlg, tempCID)) ? 0 : BBSF_DISABLED);
return 0;
}
@@ -382,7 +382,7 @@ static INT_PTR CB_SetButtonState(WPARAM wParam, LPARAM lParam)
if (!realbutton || !wParam) return 1;
- hwndDlg = M->FindWindow((HANDLE)wParam);
+ hwndDlg = M.FindWindow((HANDLE)wParam);
if (hwndDlg && realbutton && bbdi->hIcon)
SendMessage(GetDlgItem(hwndDlg, tempCID), BM_SETIMAGE, IMAGE_ICON, (LPARAM)Skin_GetIconByHandle(bbdi->hIcon));
if (hwndDlg && realbutton && bbdi->pszTooltip) {
@@ -434,7 +434,7 @@ static INT_PTR CB_RemoveButton(WPARAM wParam, LPARAM lParam)
LeaveCriticalSection(&ToolBarCS);
if (tempCID)
- M->BroadcastMessage(DM_CBDESTROY, (WPARAM)tempCID, (LPARAM)dwFlags);
+ M.BroadcastMessage(DM_CBDESTROY, (WPARAM)tempCID, (LPARAM)dwFlags);
return 0;
}
@@ -486,7 +486,7 @@ static INT_PTR CB_ModifyButton(WPARAM wParam, LPARAM lParam)
}
LeaveCriticalSection(&ToolBarCS);
if (bFound)
- M->BroadcastMessage(DM_BBNEEDUPDATE, 0, (LPARAM)cbd);
+ M.BroadcastMessage(DM_BBNEEDUPDATE, 0, (LPARAM)cbd);
return 0;
}
@@ -1186,7 +1186,7 @@ static int SaveTree(HWND hToolBarTree)
tvi.hItem = hItem;
}
LeaveCriticalSection(&ToolBarCS);
- M->WriteDword("TabSRMM_Toolbar", "SeparatorsCount", loc_sepcout);
+ db_set_dw(0, "TabSRMM_Toolbar", "SeparatorsCount", loc_sepcout);
dwSepCount = loc_sepcout;
bNeedResort = TRUE;
return 1;
@@ -1417,7 +1417,7 @@ INT_PTR CALLBACK DlgProcToolBar(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM l
switch (((LPNMHDR)lParam)->code) {
case PSN_RESET:
CB_ReInitCustomButtons();
- dwSepCount = M->GetDword("TabSRMM_Toolbar", "SeparatorsCount", 0);
+ dwSepCount = M.GetDword("TabSRMM_Toolbar", "SeparatorsCount", 0);
return 1;
case PSN_APPLY:
@@ -1442,10 +1442,10 @@ INT_PTR CALLBACK DlgProcToolBar(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM l
CB_ReInitCustomButtons();
PluginConfig.g_iButtonsBarGap = (BYTE)SendDlgItemMessage(hwndDlg, IDC_SPIN1, UDM_GETPOS, 0, 0);
- if (PluginConfig.g_iButtonsBarGap != M->GetByte("ButtonsBarGap", 1))
- M->BroadcastMessageAsync(WM_SIZE, 0, 0);
+ if (PluginConfig.g_iButtonsBarGap != M.GetByte("ButtonsBarGap", 1))
+ M.BroadcastMessageAsync(WM_SIZE, 0, 0);
- M->WriteByte(SRMSGMOD_T, "ButtonsBarGap", PluginConfig.g_iButtonsBarGap);
+ db_set_b(0, SRMSGMOD_T, "ButtonsBarGap", PluginConfig.g_iButtonsBarGap);
BuildMenuObjectsTree((HWND)hToolBarTree);
Utils::enableDlgControl(hwndDlg, IDC_IMCHECK, FALSE);