CToolBarPopup Class Reference

#include <ToolBarEx.h>

List of all members.

Public Member Functions

 CToolBarPopup (CToolBarEx *pToolBar)
 ~CToolBarPopup ()
bool ShowPopup (UINT nFlags, CPoint pt, CRect &rcExclude)
 CToolBarPopup (CToolBarEx *pToolBar)
 ~CToolBarPopup ()
bool ShowPopup (UINT nFlags, CPoint pt, CRect &rcExclude)

Protected Member Functions

virtual BOOL OnCommand (WPARAM wParam, LPARAM lParam)
virtual BOOL OnNotify (WPARAM wParam, LPARAM lParam, LRESULT *pResult)
virtual LRESULT WindowProc (UINT message, WPARAM wParam, LPARAM lParam)
void SetPosition (UINT nFlags, CPoint pt, CRect &rcExclude)
void Show (UINT nFlags, const CRect &rc)
void OnKeyDown (UINT nChar)
afx_msg void OnCaptureChanged (CWnd *pWnd)
afx_msg int OnCreate (LPCREATESTRUCT lpCreateStruct)
afx_msg int OnMouseActivate (CWnd *pDesktopWnd, UINT nHitTest, UINT message)
afx_msg void OnEndModalLoop ()
virtual BOOL OnCommand (WPARAM wParam, LPARAM lParam)
virtual BOOL OnNotify (WPARAM wParam, LPARAM lParam, LRESULT *pResult)
virtual LRESULT WindowProc (UINT message, WPARAM wParam, LPARAM lParam)
void SetPosition (UINT nFlags, CPoint pt, CRect &rcExclude)
void Show (UINT nFlags, const CRect &rc)
void OnKeyDown (UINT nChar)
void DrawBorder (CDC *pDC)
afx_msg void OnCaptureChanged (CWnd *pWnd)
afx_msg int OnCreate (LPCREATESTRUCT lpCreateStruct)
afx_msg int OnMouseActivate (CWnd *pDesktopWnd, UINT nHitTest, UINT message)
afx_msg void OnNcPaint ()
afx_msg LRESULT OnPrint (WPARAM wParam, LPARAM lParam)
afx_msg void OnEndModalLoop ()

Static Protected Member Functions

static LRESULT CALLBACK KeyboardProc (int code, WPARAM wParam, LPARAM lParam)
static LRESULT CALLBACK KeyboardProc (int code, WPARAM wParam, LPARAM lParam)

Protected Attributes

CToolBarExm_pToolBar
CToolBarCtrl m_tbCtrl
bool m_bOverTbCtrl
bool m_bTextLabels
CToolBarExm_pToolBar
bool m_bFlatMenu

Static Protected Attributes

static HHOOK m_hKeyboardHook = 0
static CToolBarPopupm_pPopup = 0
static CToolBarPopupm_pPopup

Private Member Functions

 DECLARE_DYNAMIC (CToolBarPopup)
 DECLARE_DYNAMIC (CToolBarPopup)


Detailed Description

a class for popups on toolbars

Definition at line 144 of file ToolBarEx.h.


Constructor & Destructor Documentation

CToolBarPopup::CToolBarPopup ( CToolBarEx pToolBar  ) 

Definition at line 641 of file ToolBarEx.cpp.

CToolBarPopup::~CToolBarPopup (  ) 

Definition at line 650 of file ToolBarEx.cpp.

CToolBarPopup::CToolBarPopup ( CToolBarEx pToolBar  ) 

CToolBarPopup::~CToolBarPopup (  ) 


Member Function Documentation

CToolBarPopup::DECLARE_DYNAMIC ( CToolBarPopup   )  [private]

CToolBarPopup::DECLARE_DYNAMIC ( CToolBarPopup   )  [private]

void CToolBarPopup::DrawBorder ( CDC *  pDC  )  [protected]

Definition at line 1005 of file ToolBarEx.cpp.

Referenced by OnNcPaint(), and OnPrint().

static LRESULT CALLBACK CToolBarPopup::KeyboardProc ( int  code,
WPARAM  wParam,
LPARAM  lParam 
) [static, protected]

LRESULT CALLBACK CToolBarPopup::KeyboardProc ( int  code,
WPARAM  wParam,
LPARAM  lParam 
) [static, protected]

Definition at line 896 of file ToolBarEx.cpp.

References ASSERT, m_hKeyboardHook, m_pPopup, m_tbCtrl, and OnKeyDown().

Referenced by ShowPopup().

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

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

Definition at line 1067 of file ToolBarEx.cpp.

References m_tbCtrl, and WM_TB_ENDMODALLOOP.

virtual BOOL CToolBarPopup::OnCommand ( WPARAM  wParam,
LPARAM  lParam 
) [protected, virtual]

BOOL CToolBarPopup::OnCommand ( WPARAM  wParam,
LPARAM  lParam 
) [protected, virtual]

Definition at line 921 of file ToolBarEx.cpp.

References m_pToolBar, TRUE, and WM_TB_ENDMODALLOOP.

afx_msg int CToolBarPopup::OnCreate ( LPCREATESTRUCT  lpCreateStruct  )  [protected]

int CToolBarPopup::OnCreate ( LPCREATESTRUCT  lpCreateStruct  )  [protected]

Definition at line 1077 of file ToolBarEx.cpp.

References ASSERT, BTNS_SHOWTEXT, CToolBarEx::GetButtonText(), CToolBarEx::m_aButtonsSaved, m_bTextLabels, m_pToolBar, m_tbCtrl, max, TBSTYLE_EX_MIXEDBUTTONS, and VERIFY.

afx_msg void CToolBarPopup::OnEndModalLoop (  )  [protected]

void CToolBarPopup::OnEndModalLoop (  )  [protected]

Definition at line 1062 of file ToolBarEx.cpp.

void CToolBarPopup::OnKeyDown ( UINT  nChar  )  [protected]

void CToolBarPopup::OnKeyDown ( UINT  nChar  )  [protected]

Definition at line 837 of file ToolBarEx.cpp.

References m_tbCtrl, VERIFY, and WM_TB_ENDMODALLOOP.

Referenced by KeyboardProc().

afx_msg int CToolBarPopup::OnMouseActivate ( CWnd *  pDesktopWnd,
UINT  nHitTest,
UINT  message 
) [protected]

int CToolBarPopup::OnMouseActivate ( CWnd *  pDesktopWnd,
UINT  nHitTest,
UINT  message 
) [protected]

Definition at line 1261 of file ToolBarEx.cpp.

void CToolBarPopup::OnNcPaint (  )  [protected]

Definition at line 1328 of file ToolBarEx.cpp.

References DrawBorder(), and m_bFlatMenu.

virtual BOOL CToolBarPopup::OnNotify ( WPARAM  wParam,
LPARAM  lParam,
LRESULT *  pResult 
) [protected, virtual]

BOOL CToolBarPopup::OnNotify ( WPARAM  wParam,
LPARAM  lParam,
LRESULT *  pResult 
) [protected, virtual]

Definition at line 932 of file ToolBarEx.cpp.

References CToolBarEx::DoCustomDraw(), CToolBarEx::GetButtonTip(), m_bTextLabels, m_pToolBar, m_tbCtrl, and TRUE.

LRESULT CToolBarPopup::OnPrint ( WPARAM  wParam,
LPARAM  lParam 
) [protected]

Definition at line 1342 of file ToolBarEx.cpp.

References DrawBorder(), HDC(), and m_bFlatMenu.

void CToolBarPopup::SetPosition ( UINT  nFlags,
CPoint  pt,
CRect &  rcExclude 
) [protected]

void CToolBarPopup::SetPosition ( UINT  nFlags,
CPoint  pt,
CRect &  rcExclude 
) [protected]

Definition at line 692 of file ToolBarEx.cpp.

References ASSERT, m_tbCtrl, max, min, Show(), TPM_HORNEGANIMATION, TPM_HORPOSANIMATION, TPM_VERNEGANIMATION, and TPM_VERPOSANIMATION.

Referenced by ShowPopup().

void CToolBarPopup::Show ( UINT  nFlags,
const CRect &  rc 
) [protected]

void CToolBarPopup::Show ( UINT  nFlags,
const CRect &  rc 
) [protected]

Definition at line 796 of file ToolBarEx.cpp.

References AnimateWindowWin50(), AW_BLEND, AW_HOR_NEGATIVE, AW_HOR_POSITIVE, AW_SLIDE, AW_VER_NEGATIVE, AW_VER_POSITIVE, CWinAppEx::GetInstance(), TPM_HORNEGANIMATION, TPM_HORPOSANIMATION, TPM_NOANIMATION, TPM_VERNEGANIMATION, TPM_VERPOSANIMATION, and VERIFY.

Referenced by SetPosition().

bool CToolBarPopup::ShowPopup ( UINT  nFlags,
CPoint  pt,
CRect &  rcExclude 
)

bool CToolBarPopup::ShowPopup ( UINT  nFlags,
CPoint  pt,
CRect &  rcExclude 
)

Definition at line 657 of file ToolBarEx.cpp.

References ASSERT, KeyboardProc(), m_hKeyboardHook, m_pPopup, SetPosition(), and VERIFY.

Referenced by CToolBarEx::OnReBarChevronPushed().

virtual LRESULT CToolBarPopup::WindowProc ( UINT  message,
WPARAM  wParam,
LPARAM  lParam 
) [protected, virtual]

LRESULT CToolBarPopup::WindowProc ( UINT  message,
WPARAM  wParam,
LPARAM  lParam 
) [protected, virtual]

Definition at line 971 of file ToolBarEx.cpp.

References m_bOverTbCtrl, m_tbCtrl, and WM_TB_ENDMODALLOOP.


Member Data Documentation

bool CToolBarPopup::m_bFlatMenu [protected]

Definition at line 200 of file ToolBarEx.h.

Referenced by OnNcPaint(), and OnPrint().

bool CToolBarPopup::m_bOverTbCtrl [protected]

Definition at line 178 of file ToolBarEx.h.

Referenced by WindowProc().

bool CToolBarPopup::m_bTextLabels [protected]

Definition at line 179 of file ToolBarEx.h.

Referenced by OnCreate(), and OnNotify().

static HHOOK CToolBarPopup::m_hKeyboardHook = 0 [static, protected]

Definition at line 181 of file ToolBarEx.h.

Referenced by KeyboardProc(), and ShowPopup().

CToolBarPopup* CToolBarPopup::m_pPopup [static, protected]

Definition at line 203 of file ToolBarEx.h.

CToolBarPopup * CToolBarPopup::m_pPopup = 0 [static, protected]

Definition at line 182 of file ToolBarEx.h.

Referenced by KeyboardProc(), and ShowPopup().

CToolBarEx* CToolBarPopup::m_pToolBar [protected]

Definition at line 196 of file ToolBarEx.h.

CToolBarEx* CToolBarPopup::m_pToolBar [protected]

Definition at line 176 of file ToolBarEx.h.

Referenced by OnCommand(), OnCreate(), and OnNotify().

CToolBarCtrl CToolBarPopup::m_tbCtrl [protected]

Definition at line 177 of file ToolBarEx.h.

Referenced by KeyboardProc(), OnCaptureChanged(), OnCreate(), OnKeyDown(), OnNotify(), SetPosition(), and WindowProc().


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