diff options
author | George Hazan <ghazan@miranda.im> | 2019-09-12 21:33:28 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2019-09-12 21:33:28 +0300 |
commit | 7b64f8c1aac010e8d2bf865bb649df56388a51b3 (patch) | |
tree | c1900dc291802d15ef21adba550104dcfec51d08 /plugins/TabSRMM/src/buttonsbar.cpp | |
parent | a40f1f72a0bf581b77ac3d2d348827d77195e24c (diff) |
tabSRMM: single window
Diffstat (limited to 'plugins/TabSRMM/src/buttonsbar.cpp')
-rw-r--r-- | plugins/TabSRMM/src/buttonsbar.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/plugins/TabSRMM/src/buttonsbar.cpp b/plugins/TabSRMM/src/buttonsbar.cpp index be042cfd6b..9406bca6c6 100644 --- a/plugins/TabSRMM/src/buttonsbar.cpp +++ b/plugins/TabSRMM/src/buttonsbar.cpp @@ -139,7 +139,7 @@ static int CB_InitDefaultButtons(WPARAM, LPARAM) return 0; } -void CTabBaseDlg::BB_InitDlgButtons() +void CMsgDialog::BB_InitDlgButtons() { BYTE gap = DPISCALEX_S(g_plugin.getByte("ButtonsBarGap", 1)); @@ -182,7 +182,7 @@ void CTabBaseDlg::BB_InitDlgButtons() } } -void CTabBaseDlg::BB_RedrawButtons() +void CMsgDialog::BB_RedrawButtons() { Srmm_RedrawToolbarIcons(m_hwnd); @@ -191,14 +191,14 @@ void CTabBaseDlg::BB_RedrawButtons() InvalidateRect(hwndToggleSideBar, nullptr, TRUE); } -void CTabBaseDlg::BB_RefreshTheme() +void CMsgDialog::BB_RefreshTheme() { CustomButtonData *cbd; for (int i = 0; cbd = Srmm_GetNthButton(i); i++) SendDlgItemMessage(m_hwnd, cbd->m_dwButtonCID, WM_THEMECHANGED, 0, 0); } -BOOL CTabBaseDlg::BB_SetButtonsPos() +BOOL CMsgDialog::BB_SetButtonsPos() { if (!m_hwnd || !IsWindowVisible(m_hwnd)) return 0; @@ -333,7 +333,7 @@ BOOL CTabBaseDlg::BB_SetButtonsPos() return EndDeferWindowPos(hdwp); } -void CTabBaseDlg::CB_DestroyAllButtons() +void CMsgDialog::CB_DestroyAllButtons() { CustomButtonData *cbd; for (int i = 0; cbd = Srmm_GetNthButton(i); i++) { @@ -343,7 +343,7 @@ void CTabBaseDlg::CB_DestroyAllButtons() } } -void CTabBaseDlg::CB_DestroyButton(DWORD dwButtonCID, DWORD dwFlags) +void CMsgDialog::CB_DestroyButton(DWORD dwButtonCID, DWORD dwFlags) { HWND hwndButton = GetDlgItem(m_hwnd, dwButtonCID); if (hwndButton == nullptr) @@ -360,7 +360,7 @@ void CTabBaseDlg::CB_DestroyButton(DWORD dwButtonCID, DWORD dwFlags) BB_SetButtonsPos(); } -void CTabBaseDlg::CB_ChangeButton(CustomButtonData *cbd) +void CMsgDialog::CB_ChangeButton(CustomButtonData *cbd) { HWND hwndButton = GetDlgItem(m_hwnd, cbd->m_dwButtonCID); if (hwndButton == nullptr) |