#include <CustomizeDialog.h>
Public Member Functions | |
CCustomizeDialog (CToolBarEx *pToolBar) | |
void | SetTextOptions (ETextOptions eTextOptions, bool bInDialog) |
void | SetIconOptions (EIconOptions eIconOptions, bool bInDialog) |
void | AddTextOption (CComboBox &cbTextOptions, ETextOptions eTextOptions, UINT nStringID) |
void | AddIconOption (CComboBox &cbIconOptions, EIconOptions eIconOptions, UINT nStringID) |
Protected Member Functions | |
virtual void | PostNcDestroy () |
CSize | GetButtonSize () const |
afx_msg void | OnDrawItem (int nIDCtl, LPDRAWITEMSTRUCT lpDrawItemStruct) |
afx_msg void | OnMeasureItem (int nIDCtl, LPMEASUREITEMSTRUCT lpMeasureItemStruct) |
afx_msg HBRUSH | OnCtlColor (CDC *pDC, CWnd *pWnd, UINT nCtlColor) |
LRESULT | OnInitDialog (WPARAM wParam, LPARAM lParam) |
Protected Attributes | |
COptionsDialog | m_dlgOptions |
CToolBarEx * | m_pToolBar |
Private Member Functions | |
DECLARE_DYNAMIC (CCustomizeDialog) |
Definition at line 106 of file CustomizeDialog.h.
CCustomizeDialog::CCustomizeDialog | ( | CToolBarEx * | pToolBar | ) |
Definition at line 155 of file CustomizeDialog.cpp.
void CCustomizeDialog::AddIconOption | ( | CComboBox & | cbIconOptions, | |
EIconOptions | eIconOptions, | |||
UINT | nStringID | |||
) |
Definition at line 228 of file CustomizeDialog.cpp.
References ASSERT, CToolBarEx::IsIconOptionAvailable(), m_pToolBar, and VERIFY.
Referenced by COptionsDialog::OnInitDialog().
void CCustomizeDialog::AddTextOption | ( | CComboBox & | cbTextOptions, | |
ETextOptions | eTextOptions, | |||
UINT | nStringID | |||
) |
Definition at line 215 of file CustomizeDialog.cpp.
References ASSERT, CToolBarEx::IsTextOptionAvailable(), m_pToolBar, and VERIFY.
Referenced by COptionsDialog::OnInitDialog().
CCustomizeDialog::DECLARE_DYNAMIC | ( | CCustomizeDialog | ) | [private] |
CSize CCustomizeDialog::GetButtonSize | ( | ) | const [protected] |
Definition at line 241 of file CustomizeDialog.cpp.
References cxPadding, cyPadding, CToolBarEx::GetIconOptions(), ioSmallIcons, m_pToolBar, szImageLarge(), and szImageSmall().
Referenced by OnDrawItem(), OnMeasureItem(), and SetIconOptions().
HBRUSH CCustomizeDialog::OnCtlColor | ( | CDC * | pDC, | |
CWnd * | pWnd, | |||
UINT | nCtlColor | |||
) | [protected] |
Definition at line 466 of file CustomizeDialog.cpp.
References IDC_LB_AVAILABLE, and IDC_LB_CURRENT.
void CCustomizeDialog::OnDrawItem | ( | int | nIDCtl, | |
LPDRAWITEMSTRUCT | lpDrawItemStruct | |||
) | [protected] |
Definition at line 285 of file CustomizeDialog.cpp.
References ASSERT, cxPadding, cyPadding, GetButtonSize(), CToolBarEx::GetButtonText(), IDC_LB_AVAILABLE, IDC_LB_CURRENT, IDS_SEPARATOR, int(), CToolBarEx::m_aButtons, m_pToolBar, ROP_PSDPxax, and VERIFY.
LRESULT CCustomizeDialog::OnInitDialog | ( | WPARAM | wParam, | |
LPARAM | lParam | |||
) | [protected] |
void CCustomizeDialog::OnMeasureItem | ( | int | nIDCtl, | |
LPMEASUREITEMSTRUCT | lpMeasureItemStruct | |||
) | [protected] |
Definition at line 451 of file CustomizeDialog.cpp.
References GetButtonSize(), IDC_LB_AVAILABLE, and IDC_LB_CURRENT.
void CCustomizeDialog::PostNcDestroy | ( | ) | [protected, virtual] |
Definition at line 207 of file CustomizeDialog.cpp.
void CCustomizeDialog::SetIconOptions | ( | EIconOptions | eIconOptions, | |
bool | bInDialog | |||
) |
Definition at line 176 of file CustomizeDialog.cpp.
References GetButtonSize(), IDC_LB_AVAILABLE, IDC_LB_CURRENT, m_dlgOptions, m_pToolBar, COptionsDialog::SelectIconOption(), CToolBarEx::SetIconOptions(), and VERIFY.
Referenced by COptionsDialog::OnIconOptions(), and CToolBarEx::OnReset().
void CCustomizeDialog::SetTextOptions | ( | ETextOptions | eTextOptions, | |
bool | bInDialog | |||
) |
Definition at line 164 of file CustomizeDialog.cpp.
References m_dlgOptions, m_pToolBar, COptionsDialog::SelectTextOption(), CToolBarEx::SetTextOptions(), and VERIFY.
Referenced by CToolBarEx::OnReset(), and COptionsDialog::OnTextOptions().
COptionsDialog CCustomizeDialog::m_dlgOptions [protected] |
Definition at line 135 of file CustomizeDialog.h.
Referenced by SetIconOptions(), and SetTextOptions().
CToolBarEx* CCustomizeDialog::m_pToolBar [protected] |
Definition at line 136 of file CustomizeDialog.h.
Referenced by AddIconOption(), AddTextOption(), GetButtonSize(), OnDrawItem(), SetIconOptions(), and SetTextOptions().