Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

CCoolMenuBarCtrl Class Reference

#include <CtrlCoolMenuBar.h>

Inheritance diagram for CCoolMenuBarCtrl:

CCoolBarCtrl List of all members.

Public Member Functions

 CCoolMenuBarCtrl ()
virtual ~CCoolMenuBarCtrl ()
void SetMenu (HMENU hMenu)
void OpenMenuBar ()
BOOL OpenMenuChar (UINT nChar)
virtual void OnUpdateCmdUI (CFrameWnd *pTarget, BOOL bDisableIfNoHndler)

Protected Member Functions

void ShowMenu ()
void UpdateWindowMenu (CMenu *pMenu)
void ShiftMenu (int nOffset)
BOOL OnMenuMessage (MSG *pMsg)
afx_msg void OnLButtonDown (UINT nFlags, CPoint point)
afx_msg void OnTimer (UINT nIDEvent)
afx_msg void OnMeasureItem (int nIDCtl, LPMEASUREITEMSTRUCT lpMeasureItemStruct)
afx_msg void OnDrawItem (int nIDCtl, LPDRAWITEMSTRUCT lpDrawItemStruct)
afx_msg void OnInitMenuPopup (CMenu *pPopupMenu, UINT nIndex, BOOL bSysMenu)
afx_msg void OnMenuSelect (UINT nItemID, UINT nFlags, HMENU hSysMenu)
afx_msg void OnEnterIdle (UINT nWhy, CWnd *pWho)
afx_msg void OnEnterMenuLoop (BOOL bIsTrackPopupMenu)
afx_msg void OnExitMenuLoop (BOOL bIsTrackPopupMenu)

Static Protected Member Functions

static LRESULT CALLBACK MenuFilter (int nCode, WPARAM wParam, LPARAM lParam)

Protected Attributes

CPoint m_pMouse
HMENU m_hMenu
CCoolBarItemm_pSelect

Static Protected Attributes

static CCoolMenuBarCtrlm_pMenuBar = NULL
static HHOOK m_hMsgHook = NULL

Constructor & Destructor Documentation

CCoolMenuBarCtrl::CCoolMenuBarCtrl  ) 
 

Definition at line 56 of file CtrlCoolMenuBar.cpp.

References CCoolBarCtrl::m_bGripper, CCoolBarCtrl::m_bMenuGray, CCoolBarCtrl::m_bStretch, CCoolBarCtrl::m_nHeight, NULL, and theApp.

CCoolMenuBarCtrl::~CCoolMenuBarCtrl  )  [virtual]
 

Definition at line 67 of file CtrlCoolMenuBar.cpp.


Member Function Documentation

LRESULT CCoolMenuBarCtrl::MenuFilter int  nCode,
WPARAM  wParam,
LPARAM  lParam
[static, protected]
 

Definition at line 357 of file CtrlCoolMenuBar.cpp.

References m_hMsgHook, m_pMenuBar, and OnMenuMessage().

Referenced by ShowMenu().

void CCoolMenuBarCtrl::OnDrawItem int  nIDCtl,
LPDRAWITEMSTRUCT  lpDrawItemStruct
[protected]
 

Definition at line 326 of file CtrlCoolMenuBar.cpp.

void CCoolMenuBarCtrl::OnEnterIdle UINT  nWhy,
CWnd *  pWho
[protected]
 

Definition at line 346 of file CtrlCoolMenuBar.cpp.

void CCoolMenuBarCtrl::OnEnterMenuLoop BOOL  bIsTrackPopupMenu  )  [protected]
 

Definition at line 336 of file CtrlCoolMenuBar.cpp.

void CCoolMenuBarCtrl::OnExitMenuLoop BOOL  bIsTrackPopupMenu  )  [protected]
 

Definition at line 341 of file CtrlCoolMenuBar.cpp.

void CCoolMenuBarCtrl::OnInitMenuPopup CMenu *  pPopupMenu,
UINT  nIndex,
BOOL  bSysMenu
[protected]
 

Definition at line 315 of file CtrlCoolMenuBar.cpp.

void CCoolMenuBarCtrl::OnLButtonDown UINT  nFlags,
CPoint  point
[protected]
 

Reimplemented from CCoolBarCtrl.

Definition at line 295 of file CtrlCoolMenuBar.cpp.

References CCoolBarCtrl::HitTest(), CCoolBarCtrl::m_pHot, CCoolBarCtrl::OnLButtonDown(), and ShowMenu().

void CCoolMenuBarCtrl::OnMeasureItem int  nIDCtl,
LPMEASUREITEMSTRUCT  lpMeasureItemStruct
[protected]
 

Definition at line 321 of file CtrlCoolMenuBar.cpp.

BOOL CCoolMenuBarCtrl::OnMenuMessage MSG *  pMsg  )  [protected]
 

Definition at line 369 of file CtrlCoolMenuBar.cpp.

References CCoolBarCtrl::HitTest(), CCoolBarCtrl::m_pDown, CCoolBarCtrl::m_pHot, m_pMouse, NULL, and ShiftMenu().

Referenced by MenuFilter().

void CCoolMenuBarCtrl::OnMenuSelect UINT  nItemID,
UINT  nFlags,
HMENU  hSysMenu
[protected]
 

Definition at line 331 of file CtrlCoolMenuBar.cpp.

void CCoolMenuBarCtrl::OnTimer UINT  nIDEvent  )  [protected]
 

Reimplemented from CCoolBarCtrl.

Definition at line 280 of file CtrlCoolMenuBar.cpp.

References CCoolBarCtrl::m_pHot, m_pSelect, CCoolBarCtrl::OnTimer(), and ShowMenu().

Referenced by ShowMenu().

void CCoolMenuBarCtrl::OnUpdateCmdUI CFrameWnd *  pTarget,
BOOL  bDisableIfNoHndler
[virtual]
 

Reimplemented from CCoolBarCtrl.

Definition at line 311 of file CtrlCoolMenuBar.cpp.

void CCoolMenuBarCtrl::OpenMenuBar  ) 
 

Definition at line 101 of file CtrlCoolMenuBar.cpp.

References CCoolBarCtrl::GetIndex(), CCoolBarCtrl::m_pDown, m_pSelect, and NULL.

Referenced by CMainWnd::OnSysCommand().

BOOL CCoolMenuBarCtrl::OpenMenuChar UINT  nChar  ) 
 

Definition at line 109 of file CtrlCoolMenuBar.cpp.

References CCoolBarCtrl::GetIndex(), m_hMenu, and m_pSelect.

Referenced by CMainWnd::OnSysCommand().

void CCoolMenuBarCtrl::SetMenu HMENU  hMenu  ) 
 

Definition at line 74 of file CtrlCoolMenuBar.cpp.

References CCoolBarCtrl::CCoolBarItem, CCoolBarCtrl::Clear(), m_hMenu, CCoolBarCtrl::m_pItems, and CCoolBarItem::SetText().

Referenced by CMainWnd::OnSkinChanged().

void CCoolMenuBarCtrl::ShiftMenu int  nOffset  )  [protected]
 

Definition at line 263 of file CtrlCoolMenuBar.cpp.

References CCoolBarCtrl::GetCount(), CCoolBarCtrl::GetIndex(), CCoolBarCtrl::m_pDown, CCoolBarCtrl::m_pHot, m_pSelect, and NULL.

Referenced by OnMenuMessage().

void CCoolMenuBarCtrl::ShowMenu  )  [protected]
 

Definition at line 137 of file CtrlCoolMenuBar.cpp.

References CoolMenu, CCoolBarCtrl::GetItemRect(), ID_WINDOW_NAVBAR, CShareazaApp::m_bRTL, CCoolBarCtrl::m_bTimer, m_hMenu, m_hMsgHook, CCoolBarCtrl::m_pDown, CCoolBarCtrl::m_pHot, m_pMenuBar, MenuFilter(), NULL, OnTimer(), CCoolMenu::RegisterEdge(), theApp, and UpdateWindowMenu().

Referenced by OnLButtonDown(), and OnTimer().

void CCoolMenuBarCtrl::UpdateWindowMenu CMenu *  pMenu  )  [protected]
 

Definition at line 202 of file CtrlCoolMenuBar.cpp.

References ID_SEPARATOR, CChildWnd::m_bTabMode, and NULL.

Referenced by ShowMenu().


Member Data Documentation

HMENU CCoolMenuBarCtrl::m_hMenu [protected]
 

Definition at line 40 of file CtrlCoolMenuBar.h.

Referenced by OpenMenuChar(), SetMenu(), and ShowMenu().

HHOOK CCoolMenuBarCtrl::m_hMsgHook = NULL [static, protected]
 

Definition at line 355 of file CtrlCoolMenuBar.cpp.

Referenced by MenuFilter(), and ShowMenu().

CCoolMenuBarCtrl * CCoolMenuBarCtrl::m_pMenuBar = NULL [static, protected]
 

Definition at line 354 of file CtrlCoolMenuBar.cpp.

Referenced by MenuFilter(), and ShowMenu().

CPoint CCoolMenuBarCtrl::m_pMouse [protected]
 

Definition at line 39 of file CtrlCoolMenuBar.h.

Referenced by OnMenuMessage().

CCoolBarItem* CCoolMenuBarCtrl::m_pSelect [protected]
 

Definition at line 41 of file CtrlCoolMenuBar.h.

Referenced by OnTimer(), OpenMenuBar(), OpenMenuChar(), and ShiftMenu().


The documentation for this class was generated from the following files:
Generated on Thu Dec 15 10:40:05 2005 for Shareaza 2.2.1.0 by  doxygen 1.4.2