CPlugToolBar Class Reference

#include <PlugToolBar.h>

List of all members.

Public Member Functions

 CPlugToolBar ()
void OnNewLng ()
int GetActivePlugin ()
void SetActivePlugin (int iPlugin)
void SendPluginCommand (UINT uCmd)
BOOL Create (CWnd *pParent)
virtual ~CPlugToolBar ()

Public Attributes

class CPlugFramem_pPlugFrame

Protected Member Functions

void OnClickItem (int iItem)
void DrawPressed (CDC *pDC, CPoint pt)
void InvalidateItem (int item, BOOL bErase=FALSE)
void DrawMayBeSelected (CDC *pDC, CPoint ptImage)
void Erase (CDC *pDC, RECT &rc)
BOOL Initialize ()
afx_msg void MeasureItem (LPMEASUREITEMSTRUCT lpMeasureItemStruct)
afx_msg void DrawItem (LPDRAWITEMSTRUCT lpDrawItemStruct)
afx_msg void OnMouseMove (UINT nFlags, CPoint point)
afx_msg BOOL OnEraseBkgnd (CDC *pDC)
afx_msg void OnLButtonUp (UINT nFlags, CPoint point)
afx_msg void OnLButtonDown (UINT nFlags, CPoint point)
afx_msg void OnCaptureChanged (CWnd *pWnd)

Protected Attributes

int m_iActivePlugin
class CMainFramem_pMainFrame
int m_iMayBeSelected
int m_iPressed
CFont m_font
COLORREF m_clrBk
COLORREF m_clrText


Detailed Description

Definition at line 15 of file PlugToolBar.h.


Constructor & Destructor Documentation

CPlugToolBar::CPlugToolBar (  ) 

Definition at line 18 of file PlugToolBar.cpp.

References m_clrBk, m_clrText, m_font, m_iActivePlugin, m_iMayBeSelected, and m_iPressed.

CPlugToolBar::~CPlugToolBar (  )  [virtual]

Definition at line 29 of file PlugToolBar.cpp.

References _App, fsAppSettings::ActivePlugin(), and m_iActivePlugin.


Member Function Documentation

void CPlugToolBar::OnNewLng (  ) 

int CPlugToolBar::GetActivePlugin (  ) 

Definition at line 376 of file PlugToolBar.cpp.

References m_iActivePlugin.

void CPlugToolBar::SetActivePlugin ( int  iPlugin  ) 

void CPlugToolBar::SendPluginCommand ( UINT  uCmd  ) 

Definition at line 371 of file PlugToolBar.cpp.

References fsPluginInfo::hWnd, m_iActivePlugin, and fsPluginMgr::Plugin().

BOOL CPlugToolBar::Create ( CWnd *  pParent  ) 

Definition at line 46 of file PlugToolBar.cpp.

References FALSE, Initialize(), and TRUE.

Referenced by CPlugToolBarContainer::OnCreate().

void CPlugToolBar::OnClickItem ( int  iItem  )  [protected]

Definition at line 328 of file PlugToolBar.cpp.

References SetActivePlugin().

Referenced by OnLButtonUp().

void CPlugToolBar::DrawPressed ( CDC *  pDC,
CPoint  pt 
) [protected]

Definition at line 298 of file PlugToolBar.cpp.

Referenced by DrawItem().

void CPlugToolBar::InvalidateItem ( int  item,
BOOL  bErase = FALSE 
) [protected]

Definition at line 271 of file PlugToolBar.cpp.

References m_iMayBeSelected.

Referenced by OnCaptureChanged(), OnLButtonDown(), OnLButtonUp(), and OnMouseMove().

void CPlugToolBar::DrawMayBeSelected ( CDC *  pDC,
CPoint  ptImage 
) [protected]

Definition at line 253 of file PlugToolBar.cpp.

Referenced by DrawItem().

void CPlugToolBar::Erase ( CDC *  pDC,
RECT &  rc 
) [protected]

Definition at line 239 of file PlugToolBar.cpp.

References m_clrBk.

Referenced by DrawItem(), and OnEraseBkgnd().

BOOL CPlugToolBar::Initialize ( void   )  [protected]

void CPlugToolBar::MeasureItem ( LPMEASUREITEMSTRUCT  lpMeasureItemStruct  )  [protected]

Definition at line 120 of file PlugToolBar.cpp.

void CPlugToolBar::DrawItem ( LPDRAWITEMSTRUCT  lpDrawItemStruct  )  [protected]

void CPlugToolBar::OnMouseMove ( UINT  nFlags,
CPoint  point 
) [protected]

Definition at line 169 of file PlugToolBar.cpp.

References BOOL, InvalidateItem(), m_iMayBeSelected, and m_iPressed.

BOOL CPlugToolBar::OnEraseBkgnd ( CDC *  pDC  )  [protected]

Definition at line 229 of file PlugToolBar.cpp.

References Erase(), and TRUE.

void CPlugToolBar::OnLButtonUp ( UINT  nFlags,
CPoint  point 
) [protected]

Definition at line 278 of file PlugToolBar.cpp.

References InvalidateItem(), m_iPressed, and OnClickItem().

void CPlugToolBar::OnLButtonDown ( UINT  nFlags,
CPoint  point 
) [protected]

Definition at line 289 of file PlugToolBar.cpp.

References InvalidateItem(), m_iMayBeSelected, and m_iPressed.

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

Definition at line 316 of file PlugToolBar.cpp.

References InvalidateItem(), m_iMayBeSelected, and m_iPressed.


Member Data Documentation

Definition at line 42 of file PlugToolBar.h.

Referenced by Initialize(), OnNewLng(), and SetActivePlugin().

int CPlugToolBar::m_iPressed [protected]

CFont CPlugToolBar::m_font [protected]

Definition at line 49 of file PlugToolBar.h.

Referenced by CPlugToolBar(), and DrawItem().

Definition at line 50 of file PlugToolBar.h.

Referenced by CPlugToolBar(), and Erase().

Definition at line 50 of file PlugToolBar.h.

Referenced by CPlugToolBar().


The documentation for this class was generated from the following files:

Generated on Sun May 25 00:20:50 2008 by  doxygen 1.5.6