#include <MenuBar.h>
Public Member Functions | |
CMenuBar () | |
~CMenuBar () | |
bool | SetMenu (HMENU hMenu) |
HMENU | GetMenu () const |
virtual void | OnUpdateCmdUI (CFrameWnd *pTarget, BOOL bDisableIfNoHndler) |
virtual int | OnToolHitTest (CPoint point, TOOLINFO *pTI) const |
CMenuBar () | |
~CMenuBar () | |
bool | SetMenu (HMENU hMenu) |
HMENU | GetMenu () const |
virtual void | OnUpdateCmdUI (CFrameWnd *pTarget, BOOL bDisableIfNoHndler) |
virtual int | OnToolHitTest (CPoint point, TOOLINFO *pTI) const |
Protected Member Functions | |
CReBarCtrl & | GetParentReBarCtrl () const |
int | GetParentBandIndex () const |
void | SetButtonWidth (UINT nID, int nWidth) |
void | UpdateMenuBar () |
void | RepositionSysButtons (CRect rcMenuBar) |
void | EnterTrackingMode (int nItem) |
void | TrackChevronMenu (CRect &rcChevron, int nItem) |
void | TrackPopupMenu () |
void | ContinueTracking (bool bSelectFirst) |
void | ExitTrackingMode () |
void | ShowChevronMenu (int nItem) |
bool | IsItemClipped (int nItem) const |
bool | IsOverChevron (CPoint pt) const |
bool | OnButtonDown (UINT nFlags, CPoint pt, bool bLeft) |
void | HookMessageProc (UINT message, WPARAM wParam, LPARAM lParam) |
bool | FrameOnSysCommand (UINT nID, LPARAM lParam) |
bool | FrameOnMenuChar (UINT nChar, UINT nFlags, CMenu *pMenu) |
void | FrameOnNcActivate (BOOL bActive) |
void | FrameOnInitMenuPopup (CMenu *pPopupMenu, UINT nIndex, BOOL bSysMenu) |
void | FrameOnMenuSelect (UINT nItemID, UINT nFlags, HMENU hSysMenu) |
afx_msg void | OnRButtonDown (UINT nFlags, CPoint point) |
afx_msg void | OnLButtonDown (UINT nFlags, CPoint point) |
afx_msg void | OnLButtonUp (UINT nFlags, CPoint point) |
afx_msg void | OnMouseMove (UINT nFlags, CPoint point) |
afx_msg void | OnLButtonDblClk (UINT nFlags, CPoint point) |
afx_msg void | OnCaptureChanged (CWnd *pWnd) |
afx_msg void | OnKeyDown (UINT nChar, UINT nRepCnt, UINT nFlags) |
afx_msg void | OnSysKeyDown (UINT nChar, UINT nRepCnt, UINT nFlags) |
afx_msg void | OnKillFocus (CWnd *pNewWnd) |
afx_msg UINT | OnGetDlgCode () |
afx_msg void | OnSettingChange (UINT uFlags, LPCTSTR lpszSection) |
afx_msg LRESULT | OnShowPopupMenu (WPARAM wParam, LPARAM lParam) |
afx_msg LRESULT | OnReBarChildSize (WPARAM wParam, LPARAM lParam) |
afx_msg LRESULT | OnReBarChevronPushed (WPARAM wParam, LPARAM lParam) |
afx_msg void | OnUpdateCommandUI (CCmdUI *pCmdUI) |
afx_msg void | OnDropDown (NMHDR *pNMHDR, LRESULT *pResult) |
afx_msg void | OnHotItemChange (NMHDR *pNMHDR, LRESULT *pResult) |
afx_msg void | OnCustomDraw (NMHDR *pNMHDR, LRESULT *pResult) |
DECLARE_MESSAGE_MAP () | |
CReBarCtrl & | GetParentReBarCtrl () const |
int | GetParentBandIndex () const |
void | SetButtonWidth (UINT nID, int nWidth) |
void | UpdateMenuBar () |
void | RepositionSysButtons (CRect rcMenuBar) |
void | EnterTrackingMode (int nItem) |
void | TrackChevronMenu (CRect &rcChevron, int nItem) |
void | TrackPopupMenu () |
void | ContinueTracking (bool bSelectFirst) |
void | ExitTrackingMode () |
void | ShowChevronMenu (int nItem) |
bool | IsItemClipped (int nItem) const |
bool | IsOverChevron (CPoint pt) const |
bool | OnButtonDown (UINT nFlags, CPoint pt, bool bLeft) |
void | HookMessageProc (UINT message, WPARAM wParam, LPARAM lParam) |
bool | FrameOnSysCommand (UINT nID, LPARAM lParam) |
bool | FrameOnMenuChar (UINT nChar, UINT nFlags, CMenu *pMenu) |
void | FrameOnNcActivate (BOOL bActive) |
void | FrameOnInitMenuPopup (CMenu *pPopupMenu, UINT nIndex, BOOL bSysMenu) |
void | FrameOnMenuSelect (UINT nItemID, UINT nFlags, HMENU hSysMenu) |
void | OpenTheme () |
void | CloseTheme () |
afx_msg int | OnCreate (LPCREATESTRUCT lpCreateStruct) |
afx_msg void | OnDestroy () |
afx_msg void | OnRButtonDown (UINT nFlags, CPoint point) |
afx_msg void | OnLButtonDown (UINT nFlags, CPoint point) |
afx_msg void | OnLButtonUp (UINT nFlags, CPoint point) |
afx_msg void | OnMouseMove (UINT nFlags, CPoint point) |
afx_msg void | OnLButtonDblClk (UINT nFlags, CPoint point) |
afx_msg void | OnCaptureChanged (CWnd *pWnd) |
afx_msg void | OnKeyDown (UINT nChar, UINT nRepCnt, UINT nFlags) |
afx_msg void | OnSysKeyDown (UINT nChar, UINT nRepCnt, UINT nFlags) |
afx_msg void | OnKillFocus (CWnd *pNewWnd) |
afx_msg UINT | OnGetDlgCode () |
afx_msg void | OnSettingChange (UINT uFlags, LPCTSTR lpszSection) |
afx_msg LRESULT | OnShowPopupMenu (WPARAM wParam, LPARAM lParam) |
afx_msg LRESULT | OnReBarChildSize (WPARAM wParam, LPARAM lParam) |
afx_msg LRESULT | OnReBarChevronPushed (WPARAM wParam, LPARAM lParam) |
afx_msg LRESULT | OnThemeChanged (WPARAM wParam, LPARAM lParam) |
afx_msg void | OnUpdateMenuButton (CCmdUI *pCmdUI) |
afx_msg void | OnDropDown (NMHDR *pNMHDR, LRESULT *pResult) |
afx_msg void | OnHotItemChange (NMHDR *pNMHDR, LRESULT *pResult) |
afx_msg void | OnCustomDraw (NMHDR *pNMHDR, LRESULT *pResult) |
DECLARE_MESSAGE_MAP () | |
Static Protected Member Functions | |
static LRESULT CALLBACK | MessageProc (int code, WPARAM wParam, LPARAM lParam) |
static LRESULT CALLBACK | MessageProc (int code, WPARAM wParam, LPARAM lParam) |
Protected Attributes | |
CFont | m_fontMenu |
CPoint | m_ptMouseLast |
HWND | m_hWndMDIChild |
HWND | m_hWndOldFocus |
HMENU | m_hMenu |
HMENU | m_hMenuTracking |
int | m_nItem |
bool | m_bItemTracking |
bool | m_bItemDropped |
bool | m_bPrimaryMenu |
bool | m_bSubmenuItem |
bool | m_bEscape |
bool | m_bContinue |
bool | m_bSelectFirst |
bool | m_bButtonCapture |
bool | m_bFrameActive |
CTypedPtrArray< CPtrArray, CMenuBarButton * > | m_aMenuBarButtons |
CTypedPtrArray< CPtrArray, CMenuBarButton * > | m_aMenuBarButtons |
HTHEME | m_hTheme |
Static Protected Attributes | |
static HHOOK | m_hMsgHook = 0 |
static CMenuBar * | m_pMenuBar = 0 |
static CMenuBar * | m_pMenuBar |
Private Member Functions | |
DECLARE_DYNAMIC (CMenuBar) | |
DECLARE_DYNAMIC (CMenuBar) | |
Private Attributes | |
friend | CFrameWndBase< CFrameWnd > |
friend | CFrameWndBase< CMDIFrameWnd > |
Definition at line 108 of file MenuBar.h.
CMenuBar::CMenuBar | ( | ) |
Definition at line 237 of file MenuBar.cpp.
CMenuBar::~CMenuBar | ( | ) |
CMenuBar::CMenuBar | ( | ) |
CMenuBar::~CMenuBar | ( | ) |
void CMenuBar::CloseTheme | ( | ) | [protected] |
Definition at line 1584 of file MenuBar.cpp.
References ASSERT, CloseThemeDataXP(), and m_hTheme.
Referenced by OnDestroy(), and OnThemeChanged().
void CMenuBar::ContinueTracking | ( | bool | bSelectFirst | ) | [protected] |
void CMenuBar::ContinueTracking | ( | bool | bSelectFirst | ) | [protected] |
Definition at line 651 of file MenuBar.cpp.
References m_bContinue, and m_bSelectFirst.
Referenced by OnHotItemChange().
CMenuBar::DECLARE_DYNAMIC | ( | CMenuBar | ) | [private] |
CMenuBar::DECLARE_DYNAMIC | ( | CMenuBar | ) | [private] |
CMenuBar::DECLARE_MESSAGE_MAP | ( | ) | [protected] |
CMenuBar::DECLARE_MESSAGE_MAP | ( | ) | [protected] |
void CMenuBar::EnterTrackingMode | ( | int | nItem | ) | [protected] |
void CMenuBar::EnterTrackingMode | ( | int | nItem | ) | [protected] |
Definition at line 439 of file MenuBar.cpp.
References m_bItemTracking, and m_hWndOldFocus.
Referenced by FrameOnSysCommand(), and OnShowPopupMenu().
void CMenuBar::ExitTrackingMode | ( | ) | [protected] |
void CMenuBar::ExitTrackingMode | ( | ) | [protected] |
Definition at line 659 of file MenuBar.cpp.
References m_bItemTracking, m_hWndOldFocus, and VERIFY.
Referenced by OnKeyDown(), OnKillFocus(), OnLButtonDown(), OnShowPopupMenu(), OnSysKeyDown(), and TrackChevronMenu().
void CMenuBar::FrameOnInitMenuPopup | ( | CMenu * | pPopupMenu, | |
UINT | nIndex, | |||
BOOL | bSysMenu | |||
) | [protected] |
void CMenuBar::FrameOnInitMenuPopup | ( | CMenu * | pPopupMenu, | |
UINT | nIndex, | |||
BOOL | bSysMenu | |||
) | [protected] |
Definition at line 1386 of file MenuBar.cpp.
References m_bPrimaryMenu, m_bSubmenuItem, and m_hMenuTracking.
Referenced by CFrameWndBase< TBase >::OnInitMenuPopup().
bool CMenuBar::FrameOnMenuChar | ( | UINT | nChar, | |
UINT | nFlags, | |||
CMenu * | pMenu | |||
) | [protected] |
bool CMenuBar::FrameOnMenuChar | ( | UINT | nChar, | |
UINT | nFlags, | |||
CMenu * | pMenu | |||
) | [protected] |
Definition at line 1363 of file MenuBar.cpp.
References TRUE, and WM_MB_SHOWPOPUPMENU.
Referenced by CFrameWndBase< TBase >::OnMenuChar().
void CMenuBar::FrameOnMenuSelect | ( | UINT | nItemID, | |
UINT | nFlags, | |||
HMENU | hSysMenu | |||
) | [protected] |
void CMenuBar::FrameOnMenuSelect | ( | UINT | nItemID, | |
UINT | nFlags, | |||
HMENU | hSysMenu | |||
) | [protected] |
Definition at line 1399 of file MenuBar.cpp.
References m_bPrimaryMenu, m_bSubmenuItem, and m_hMenuTracking.
Referenced by CFrameWndBase< TBase >::OnMenuSelect().
void CMenuBar::FrameOnNcActivate | ( | BOOL | bActive | ) | [protected] |
void CMenuBar::FrameOnNcActivate | ( | BOOL | bActive | ) | [protected] |
Definition at line 1378 of file MenuBar.cpp.
References m_bFrameActive, and TRUE.
Referenced by CFrameWndBase< TBase >::OnNcActivate().
bool CMenuBar::FrameOnSysCommand | ( | UINT | nID, | |
LPARAM | lParam | |||
) | [protected] |
bool CMenuBar::FrameOnSysCommand | ( | UINT | nID, | |
LPARAM | lParam | |||
) | [protected] |
Definition at line 1344 of file MenuBar.cpp.
References EnterTrackingMode(), IsItemClipped(), and ShowChevronMenu().
Referenced by CFrameWndBase< TBase >::OnSysCommand().
HMENU CMenuBar::GetMenu | ( | ) | const |
HMENU CMenuBar::GetMenu | ( | ) | const |
int CMenuBar::GetParentBandIndex | ( | ) | const [protected] |
int CMenuBar::GetParentBandIndex | ( | ) | const [protected] |
Definition at line 339 of file MenuBar.cpp.
References ASSERT, and GetParentReBarCtrl().
Referenced by IsOverChevron(), ShowChevronMenu(), and UpdateMenuBar().
CReBarCtrl& CMenuBar::GetParentReBarCtrl | ( | ) | const [protected] |
CReBarCtrl & CMenuBar::GetParentReBarCtrl | ( | ) | const [protected] |
Definition at line 334 of file MenuBar.cpp.
Referenced by GetParentBandIndex(), IsOverChevron(), ShowChevronMenu(), and UpdateMenuBar().
void CMenuBar::HookMessageProc | ( | UINT | message, | |
WPARAM | wParam, | |||
LPARAM | lParam | |||
) | [protected] |
void CMenuBar::HookMessageProc | ( | UINT | message, | |
WPARAM | wParam, | |||
LPARAM | lParam | |||
) | [protected] |
Definition at line 1289 of file MenuBar.cpp.
References m_bEscape, m_bPrimaryMenu, and m_bSubmenuItem.
Referenced by MessageProc().
bool CMenuBar::IsItemClipped | ( | int | nItem | ) | const [protected] |
bool CMenuBar::IsItemClipped | ( | int | nItem | ) | const [protected] |
Definition at line 692 of file MenuBar.cpp.
Referenced by FrameOnSysCommand(), OnHotItemChange(), OnShowPopupMenu(), and TrackChevronMenu().
bool CMenuBar::IsOverChevron | ( | CPoint | pt | ) | const [protected] |
bool CMenuBar::IsOverChevron | ( | CPoint | pt | ) | const [protected] |
Definition at line 703 of file MenuBar.cpp.
References GetParentBandIndex(), GetParentReBarCtrl(), and RBHT_CHEVRON.
Referenced by OnMouseMove().
static LRESULT CALLBACK CMenuBar::MessageProc | ( | int | code, | |
WPARAM | wParam, | |||
LPARAM | lParam | |||
) | [static, protected] |
LRESULT CALLBACK CMenuBar::MessageProc | ( | int | code, | |
WPARAM | wParam, | |||
LPARAM | lParam | |||
) | [static, protected] |
Definition at line 1331 of file MenuBar.cpp.
References ASSERT, HookMessageProc(), m_hMsgHook, and m_pMenuBar.
Referenced by TrackPopupMenu().
bool CMenuBar::OnButtonDown | ( | UINT | nFlags, | |
CPoint | pt, | |||
bool | bLeft | |||
) | [protected] |
bool CMenuBar::OnButtonDown | ( | UINT | nFlags, | |
CPoint | pt, | |||
bool | bLeft | |||
) | [protected] |
afx_msg void CMenuBar::OnCaptureChanged | ( | CWnd * | pWnd | ) | [protected] |
void CMenuBar::OnCaptureChanged | ( | CWnd * | pWnd | ) | [protected] |
int CMenuBar::OnCreate | ( | LPCREATESTRUCT | lpCreateStruct | ) | [protected] |
Definition at line 975 of file MenuBar.cpp.
References ASSERT, CWinAppEx::GetInstance(), and SetWindowThemeXP().
afx_msg void CMenuBar::OnCustomDraw | ( | NMHDR * | pNMHDR, | |
LRESULT * | pResult | |||
) | [protected] |
void CMenuBar::OnCustomDraw | ( | NMHDR * | pNMHDR, | |
LRESULT * | pResult | |||
) | [protected] |
Definition at line 1204 of file MenuBar.cpp.
References CMenuBarButton::GetButtonSize(), CWinAppEx::GetInstance(), IDBUTTON_SYSMENU, m_aMenuBarButtons, m_bFrameActive, m_hWndMDIChild, and VERIFY.
void CMenuBar::OnDestroy | ( | ) | [protected] |
afx_msg void CMenuBar::OnDropDown | ( | NMHDR * | pNMHDR, | |
LRESULT * | pResult | |||
) | [protected] |
void CMenuBar::OnDropDown | ( | NMHDR * | pNMHDR, | |
LRESULT * | pResult | |||
) | [protected] |
Definition at line 1149 of file MenuBar.cpp.
References FALSE, m_bItemDropped, TRUE, and WM_MB_SHOWPOPUPMENU.
afx_msg UINT CMenuBar::OnGetDlgCode | ( | ) | [protected] |
UINT CMenuBar::OnGetDlgCode | ( | ) | [protected] |
afx_msg void CMenuBar::OnHotItemChange | ( | NMHDR * | pNMHDR, | |
LRESULT * | pResult | |||
) | [protected] |
void CMenuBar::OnHotItemChange | ( | NMHDR * | pNMHDR, | |
LRESULT * | pResult | |||
) | [protected] |
Definition at line 1165 of file MenuBar.cpp.
References ContinueTracking(), IsItemClipped(), m_bItemDropped, m_bItemTracking, m_nItem, and ShowChevronMenu().
afx_msg void CMenuBar::OnKeyDown | ( | UINT | nChar, | |
UINT | nRepCnt, | |||
UINT | nFlags | |||
) | [protected] |
void CMenuBar::OnKeyDown | ( | UINT | nChar, | |
UINT | nRepCnt, | |||
UINT | nFlags | |||
) | [protected] |
afx_msg void CMenuBar::OnKillFocus | ( | CWnd * | pNewWnd | ) | [protected] |
void CMenuBar::OnKillFocus | ( | CWnd * | pNewWnd | ) | [protected] |
afx_msg void CMenuBar::OnLButtonDblClk | ( | UINT | nFlags, | |
CPoint | point | |||
) | [protected] |
void CMenuBar::OnLButtonDblClk | ( | UINT | nFlags, | |
CPoint | point | |||
) | [protected] |
afx_msg void CMenuBar::OnLButtonDown | ( | UINT | nFlags, | |
CPoint | point | |||
) | [protected] |
void CMenuBar::OnLButtonDown | ( | UINT | nFlags, | |
CPoint | point | |||
) | [protected] |
Definition at line 895 of file MenuBar.cpp.
References ExitTrackingMode(), m_aMenuBarButtons, m_bButtonCapture, and OnButtonDown().
afx_msg void CMenuBar::OnLButtonUp | ( | UINT | nFlags, | |
CPoint | point | |||
) | [protected] |
void CMenuBar::OnLButtonUp | ( | UINT | nFlags, | |
CPoint | point | |||
) | [protected] |
Definition at line 921 of file MenuBar.cpp.
References m_aMenuBarButtons, m_bButtonCapture, m_hWndMDIChild, and VERIFY.
afx_msg void CMenuBar::OnMouseMove | ( | UINT | nFlags, | |
CPoint | point | |||
) | [protected] |
void CMenuBar::OnMouseMove | ( | UINT | nFlags, | |
CPoint | point | |||
) | [protected] |
Definition at line 949 of file MenuBar.cpp.
References IsOverChevron(), m_aMenuBarButtons, m_bButtonCapture, m_bItemDropped, m_bItemTracking, m_ptMouseLast, and ShowChevronMenu().
afx_msg void CMenuBar::OnRButtonDown | ( | UINT | nFlags, | |
CPoint | point | |||
) | [protected] |
void CMenuBar::OnRButtonDown | ( | UINT | nFlags, | |
CPoint | point | |||
) | [protected] |
afx_msg LRESULT CMenuBar::OnReBarChevronPushed | ( | WPARAM | wParam, | |
LPARAM | lParam | |||
) | [protected] |
LRESULT CMenuBar::OnReBarChevronPushed | ( | WPARAM | wParam, | |
LPARAM | lParam | |||
) | [protected] |
afx_msg LRESULT CMenuBar::OnReBarChildSize | ( | WPARAM | wParam, | |
LPARAM | lParam | |||
) | [protected] |
LRESULT CMenuBar::OnReBarChildSize | ( | WPARAM | wParam, | |
LPARAM | lParam | |||
) | [protected] |
afx_msg void CMenuBar::OnSettingChange | ( | UINT | uFlags, | |
LPCTSTR | lpszSection | |||
) | [protected] |
void CMenuBar::OnSettingChange | ( | UINT | uFlags, | |
LPCTSTR | lpszSection | |||
) | [protected] |
afx_msg LRESULT CMenuBar::OnShowPopupMenu | ( | WPARAM | wParam, | |
LPARAM | lParam | |||
) | [protected] |
LRESULT CMenuBar::OnShowPopupMenu | ( | WPARAM | wParam, | |
LPARAM | lParam | |||
) | [protected] |
Definition at line 1080 of file MenuBar.cpp.
References EnterTrackingMode(), ExitTrackingMode(), int(), IsItemClipped(), m_bContinue, m_bEscape, m_bSelectFirst, m_nItem, ShowChevronMenu(), and TrackPopupMenu().
afx_msg void CMenuBar::OnSysKeyDown | ( | UINT | nChar, | |
UINT | nRepCnt, | |||
UINT | nFlags | |||
) | [protected] |
void CMenuBar::OnSysKeyDown | ( | UINT | nChar, | |
UINT | nRepCnt, | |||
UINT | nFlags | |||
) | [protected] |
LRESULT CMenuBar::OnThemeChanged | ( | WPARAM | wParam, | |
LPARAM | lParam | |||
) | [protected] |
virtual int CMenuBar::OnToolHitTest | ( | CPoint | point, | |
TOOLINFO * | pTI | |||
) | const [virtual] |
int CMenuBar::OnToolHitTest | ( | CPoint | point, | |
TOOLINFO * | pTI | |||
) | const [virtual] |
Definition at line 771 of file MenuBar.cpp.
References CWinAppEx::GetInstance(), IDS_TOOLTIP_CLOSE, IDS_TOOLTIP_MAXIMIZE, IDS_TOOLTIP_MINIMIZE, IDS_TOOLTIP_RESTORE, and m_aMenuBarButtons.
virtual void CMenuBar::OnUpdateCmdUI | ( | CFrameWnd * | pTarget, | |
BOOL | bDisableIfNoHndler | |||
) | [virtual] |
void CMenuBar::OnUpdateCmdUI | ( | CFrameWnd * | pTarget, | |
BOOL | bDisableIfNoHndler | |||
) | [virtual] |
Definition at line 730 of file MenuBar.cpp.
References BOOL(), DT_HIDEPREFIX, FALSE, CWinAppEx::GetInstance(), CWinAppEx::GetMenuUnderlines(), CWinAppEx::IsWin2K(), m_aMenuBarButtons, m_bItemTracking, m_hWndMDIChild, and UpdateMenuBar().
void CMenuBar::OnUpdateCommandUI | ( | CCmdUI * | pCmdUI | ) | [protected] |
void CMenuBar::OnUpdateMenuButton | ( | CCmdUI * | pCmdUI | ) | [protected] |
Definition at line 1304 of file MenuBar.cpp.
void CMenuBar::OpenTheme | ( | ) | [protected] |
Definition at line 1575 of file MenuBar.cpp.
References IsThemeActiveXP(), m_aMenuBarButtons, m_hTheme, and OpenThemeDataXP().
Referenced by OnThemeChanged().
void CMenuBar::RepositionSysButtons | ( | CRect | rcMenuBar | ) | [protected] |
void CMenuBar::RepositionSysButtons | ( | CRect | rcMenuBar | ) | [protected] |
Definition at line 416 of file MenuBar.cpp.
References CMenuBarButton::GetButtonSize(), m_aMenuBarButtons, and m_hWndMDIChild.
Referenced by OnReBarChildSize(), and UpdateMenuBar().
void CMenuBar::SetButtonWidth | ( | UINT | nID, | |
int | nWidth | |||
) | [protected] |
void CMenuBar::SetButtonWidth | ( | UINT | nID, | |
int | nWidth | |||
) | [protected] |
bool CMenuBar::SetMenu | ( | HMENU | hMenu | ) |
bool CMenuBar::SetMenu | ( | HMENU | hMenu | ) |
Definition at line 272 of file MenuBar.cpp.
References IDBUTTON_SYSMENU, m_hMenu, UpdateMenuBar(), and VERIFY.
Referenced by CFrameWndBase< TBase >::LoadFrame(), CMDIClientWndEx::OnMDISetMenu(), and CFrameWndEx::OnUpdateFrameMenu().
void CMenuBar::ShowChevronMenu | ( | int | nItem | ) | [protected] |
void CMenuBar::ShowChevronMenu | ( | int | nItem | ) | [protected] |
Definition at line 682 of file MenuBar.cpp.
References GetParentBandIndex(), GetParentReBarCtrl(), m_bItemDropped, and RB_PUSHCHEVRON.
Referenced by FrameOnSysCommand(), OnHotItemChange(), OnMouseMove(), and OnShowPopupMenu().
void CMenuBar::TrackChevronMenu | ( | CRect & | rcChevron, | |
int | nItem | |||
) | [protected] |
void CMenuBar::TrackChevronMenu | ( | CRect & | rcChevron, | |
int | nItem | |||
) | [protected] |
Definition at line 463 of file MenuBar.cpp.
References ASSERT, ExitTrackingMode(), FALSE, CWinAppEx::GetInstance(), IsItemClipped(), CWinAppEx::IsWin98_2K(), m_aMenuBarButtons, m_hMenu, m_hWndMDIChild, MIIM_BITMAP, MIIM_FTYPE, MIIM_STRING, TPM_VERPOSANIMATION, CWinAppEx::TrackPopupMenuEx(), TRUE, and VERIFY.
Referenced by OnReBarChevronPushed().
void CMenuBar::TrackPopupMenu | ( | ) | [protected] |
void CMenuBar::TrackPopupMenu | ( | ) | [protected] |
Definition at line 583 of file MenuBar.cpp.
References ASSERT, FALSE, CWinAppEx::GetInstance(), CWinAppEx::IsWin2K(), CWinAppEx::IsWin98_2K(), m_bContinue, m_bItemDropped, m_bPrimaryMenu, m_bSelectFirst, m_bSubmenuItem, m_hMenu, m_hMenuTracking, m_hMsgHook, m_hWndMDIChild, m_nItem, m_pMenuBar, MessageProc(), TPM_NOANIMATION, TPM_VERPOSANIMATION, CWinAppEx::TrackPopupMenuEx(), TRUE, and VERIFY.
Referenced by OnShowPopupMenu().
void CMenuBar::UpdateMenuBar | ( | ) | [protected] |
void CMenuBar::UpdateMenuBar | ( | ) | [protected] |
Definition at line 356 of file MenuBar.cpp.
References CMenuBarButton::GetButtonSize(), CWinAppEx::GetInstance(), CWinAppEx::GetNonClientMetrics(), GetParentBandIndex(), GetParentReBarCtrl(), IDBUTTON_SYSMENU, m_fontMenu, RepositionSysButtons(), SetButtonWidth(), TRUE, and VERIFY.
Referenced by OnSettingChange(), OnUpdateCmdUI(), and SetMenu().
CFrameWndBase< CFrameWnd > [private] |
CFrameWndBase< CMDIFrameWnd > [private] |
CTypedPtrArray< CPtrArray, CMenuBarButton* > CMenuBar::m_aMenuBarButtons [protected] |
CTypedPtrArray< CPtrArray, CMenuBarButton* > CMenuBar::m_aMenuBarButtons [protected] |
Definition at line 186 of file MenuBar.h.
Referenced by OnCaptureChanged(), OnCustomDraw(), OnLButtonDown(), OnLButtonUp(), OnMouseMove(), OnToolHitTest(), OnUpdateCmdUI(), OpenTheme(), RepositionSysButtons(), TrackChevronMenu(), and ~CMenuBar().
bool CMenuBar::m_bButtonCapture [protected] |
Definition at line 183 of file MenuBar.h.
Referenced by OnCaptureChanged(), OnLButtonDown(), OnLButtonUp(), and OnMouseMove().
bool CMenuBar::m_bContinue [protected] |
Definition at line 181 of file MenuBar.h.
Referenced by ContinueTracking(), OnShowPopupMenu(), and TrackPopupMenu().
bool CMenuBar::m_bEscape [protected] |
bool CMenuBar::m_bFrameActive [protected] |
bool CMenuBar::m_bItemDropped [protected] |
Definition at line 177 of file MenuBar.h.
Referenced by OnDropDown(), OnHotItemChange(), OnMouseMove(), ShowChevronMenu(), and TrackPopupMenu().
bool CMenuBar::m_bItemTracking [protected] |
Definition at line 176 of file MenuBar.h.
Referenced by EnterTrackingMode(), ExitTrackingMode(), OnGetDlgCode(), OnHotItemChange(), OnKeyDown(), OnKillFocus(), OnMouseMove(), and OnUpdateCmdUI().
bool CMenuBar::m_bPrimaryMenu [protected] |
Definition at line 178 of file MenuBar.h.
Referenced by FrameOnInitMenuPopup(), FrameOnMenuSelect(), HookMessageProc(), and TrackPopupMenu().
bool CMenuBar::m_bSelectFirst [protected] |
Definition at line 182 of file MenuBar.h.
Referenced by ContinueTracking(), OnShowPopupMenu(), and TrackPopupMenu().
bool CMenuBar::m_bSubmenuItem [protected] |
Definition at line 179 of file MenuBar.h.
Referenced by FrameOnInitMenuPopup(), FrameOnMenuSelect(), HookMessageProc(), and TrackPopupMenu().
CFont CMenuBar::m_fontMenu [protected] |
HMENU CMenuBar::m_hMenu [protected] |
Definition at line 172 of file MenuBar.h.
Referenced by GetMenu(), SetMenu(), TrackChevronMenu(), and TrackPopupMenu().
HMENU CMenuBar::m_hMenuTracking [protected] |
Definition at line 173 of file MenuBar.h.
Referenced by FrameOnInitMenuPopup(), FrameOnMenuSelect(), and TrackPopupMenu().
static HHOOK CMenuBar::m_hMsgHook = 0 [static, protected] |
HTHEME CMenuBar::m_hTheme [protected] |
HWND CMenuBar::m_hWndMDIChild [protected] |
Definition at line 170 of file MenuBar.h.
Referenced by OnCustomDraw(), OnLButtonDblClk(), OnLButtonUp(), OnUpdateCmdUI(), RepositionSysButtons(), TrackChevronMenu(), and TrackPopupMenu().
HWND CMenuBar::m_hWndOldFocus [protected] |
Definition at line 171 of file MenuBar.h.
Referenced by EnterTrackingMode(), and ExitTrackingMode().
int CMenuBar::m_nItem [protected] |
Definition at line 175 of file MenuBar.h.
Referenced by OnHotItemChange(), OnShowPopupMenu(), and TrackPopupMenu().
CMenuBar* CMenuBar::m_pMenuBar [static, protected] |
CMenuBar * CMenuBar::m_pMenuBar = 0 [static, protected] |
CPoint CMenuBar::m_ptMouseLast [protected] |