CMenuBar Class Reference

#include <MenuBar.h>

List of all members.

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 CMenuBarm_pMenuBar = 0
static CMenuBarm_pMenuBar

Private Member Functions

 DECLARE_DYNAMIC (CMenuBar)
 DECLARE_DYNAMIC (CMenuBar)

Private Attributes

friend CFrameWndBase< CFrameWnd >
friend CFrameWndBase< CMDIFrameWnd >


Detailed Description

A class for holding menus in a floating bar

Definition at line 108 of file MenuBar.h.


Constructor & Destructor Documentation

CMenuBar::CMenuBar (  ) 

Definition at line 237 of file MenuBar.cpp.

CMenuBar::~CMenuBar (  ) 

Definition at line 254 of file MenuBar.cpp.

References m_aMenuBarButtons, m_fontMenu, and VERIFY.

CMenuBar::CMenuBar (  ) 

CMenuBar::~CMenuBar (  ) 


Member Function Documentation

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

Definition at line 326 of file MenuBar.cpp.

References m_hMenu.

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]

Definition at line 846 of file MenuBar.cpp.

Referenced by OnLButtonDown(), and OnRButtonDown().

afx_msg void CMenuBar::OnCaptureChanged ( CWnd *  pWnd  )  [protected]

void CMenuBar::OnCaptureChanged ( CWnd *  pWnd  )  [protected]

Definition at line 1010 of file MenuBar.cpp.

References m_aMenuBarButtons, and m_bButtonCapture.

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]

Definition at line 995 of file MenuBar.cpp.

References CloseTheme().

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]

Definition at line 1068 of file MenuBar.cpp.

References m_bItemTracking.

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]

Definition at line 1030 of file MenuBar.cpp.

References ExitTrackingMode(), and m_bItemTracking.

afx_msg void CMenuBar::OnKillFocus ( CWnd *  pNewWnd  )  [protected]

void CMenuBar::OnKillFocus ( CWnd *  pNewWnd  )  [protected]

Definition at line 1058 of file MenuBar.cpp.

References ExitTrackingMode(), and m_bItemTracking.

afx_msg void CMenuBar::OnLButtonDblClk ( UINT  nFlags,
CPoint  point 
) [protected]

void CMenuBar::OnLButtonDblClk ( UINT  nFlags,
CPoint  point 
) [protected]

Definition at line 995 of file MenuBar.cpp.

References m_hWndMDIChild.

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]

Definition at line 887 of file MenuBar.cpp.

References OnButtonDown().

afx_msg LRESULT CMenuBar::OnReBarChevronPushed ( WPARAM  wParam,
LPARAM  lParam 
) [protected]

LRESULT CMenuBar::OnReBarChevronPushed ( WPARAM  wParam,
LPARAM  lParam 
) [protected]

Definition at line 1130 of file MenuBar.cpp.

References int(), and TrackChevronMenu().

afx_msg LRESULT CMenuBar::OnReBarChildSize ( WPARAM  wParam,
LPARAM  lParam 
) [protected]

LRESULT CMenuBar::OnReBarChildSize ( WPARAM  wParam,
LPARAM  lParam 
) [protected]

Definition at line 1119 of file MenuBar.cpp.

References RepositionSysButtons().

afx_msg void CMenuBar::OnSettingChange ( UINT  uFlags,
LPCTSTR  lpszSection 
) [protected]

void CMenuBar::OnSettingChange ( UINT  uFlags,
LPCTSTR  lpszSection 
) [protected]

Definition at line 1073 of file MenuBar.cpp.

References UpdateMenuBar().

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]

Definition at line 1051 of file MenuBar.cpp.

References ExitTrackingMode().

LRESULT CMenuBar::OnThemeChanged ( WPARAM  wParam,
LPARAM  lParam 
) [protected]

Definition at line 1296 of file MenuBar.cpp.

References CloseTheme(), and OpenTheme().

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]

Definition at line 1140 of file MenuBar.cpp.

References IDBUTTON_FIRST, and IDBUTTON_LAST.

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]

Definition at line 346 of file MenuBar.cpp.

References VERIFY.

Referenced by UpdateMenuBar().

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().


Member Data Documentation

CFrameWndBase< CFrameWnd > [private]

Definition at line 112 of file MenuBar.h.

CFrameWndBase< CMDIFrameWnd > [private]

Definition at line 113 of file MenuBar.h.

CTypedPtrArray< CPtrArray, CMenuBarButton* > CMenuBar::m_aMenuBarButtons [protected]

Definition at line 190 of file MenuBar.h.

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]

Definition at line 180 of file MenuBar.h.

Referenced by HookMessageProc(), and OnShowPopupMenu().

bool CMenuBar::m_bFrameActive [protected]

Definition at line 184 of file MenuBar.h.

Referenced by FrameOnNcActivate(), and OnCustomDraw().

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]

Definition at line 167 of file MenuBar.h.

Referenced by UpdateMenuBar(), and ~CMenuBar().

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]

Definition at line 161 of file MenuBar.h.

Referenced by MessageProc(), and TrackPopupMenu().

HTHEME CMenuBar::m_hTheme [protected]

Definition at line 192 of file MenuBar.h.

Referenced by CloseTheme(), and OpenTheme().

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]

Definition at line 166 of file MenuBar.h.

CMenuBar * CMenuBar::m_pMenuBar = 0 [static, protected]

Definition at line 162 of file MenuBar.h.

Referenced by MessageProc(), and TrackPopupMenu().

CPoint CMenuBar::m_ptMouseLast [protected]

Definition at line 168 of file MenuBar.h.

Referenced by OnMouseMove().


The documentation for this class was generated from the following files:
Generated on Thu Dec 7 01:22:24 2006 for DT2005.panorama by  doxygen 1.4.7