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

CIconButtonCtrl Class Reference

#include <CtrlIconButton.h>

List of all members.

Public Member Functions

 CIconButtonCtrl ()
virtual ~CIconButtonCtrl ()
void SetText (LPCTSTR pszText)
void SetIcon (UINT nIconID)
void SetIcon (HICON hIcon)
void SetHandCursor (BOOL bCursor)
virtual BOOL Create (const RECT &rect, CWnd *pParentWnd, UINT nControlID)

Protected Member Functions

BOOL RemoveStyle ()
afx_msg void OnMouseMove (UINT nFlags, CPoint point)
afx_msg void OnLButtonDown (UINT nFlags, CPoint point)
afx_msg void OnLButtonUp (UINT nFlags, CPoint point)
afx_msg void OnRButtonDown (UINT nFlags, CPoint point)
afx_msg void OnRButtonUp (UINT nFlags, CPoint point)
afx_msg void OnLButtonDblClk (UINT nFlags, CPoint point)
afx_msg void OnPaint ()
afx_msg BOOL OnEraseBkgnd (CDC *pDC)
afx_msg void OnEnable (BOOL bEnable)

Protected Attributes

CImageList m_pImageList
BOOL m_bCapture
BOOL m_bDown
BOOL m_bCursor


Constructor & Destructor Documentation

CIconButtonCtrl::CIconButtonCtrl  ) 
 

Definition at line 51 of file CtrlIconButton.cpp.

CIconButtonCtrl::~CIconButtonCtrl  )  [virtual]
 

Definition at line 60 of file CtrlIconButton.cpp.


Member Function Documentation

BOOL CIconButtonCtrl::Create const RECT &  rect,
CWnd *  pParentWnd,
UINT  nControlID
[virtual]
 

Definition at line 67 of file CtrlIconButton.cpp.

References NULL.

Referenced by CSearchPadWnd::OnCreate(), CSearchInputBox::OnCreate(), and CHomeSearchCtrl::OnCreate().

void CIconButtonCtrl::OnEnable BOOL  bEnable  )  [protected]
 

Definition at line 311 of file CtrlIconButton.cpp.

BOOL CIconButtonCtrl::OnEraseBkgnd CDC *  pDC  )  [protected]
 

Definition at line 196 of file CtrlIconButton.cpp.

void CIconButtonCtrl::OnLButtonDblClk UINT  nFlags,
CPoint  point
[protected]
 

Definition at line 178 of file CtrlIconButton.cpp.

References OnLButtonDown().

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

Definition at line 146 of file CtrlIconButton.cpp.

References m_bDown.

Referenced by OnLButtonDblClk().

void CIconButtonCtrl::OnLButtonUp UINT  nFlags,
CPoint  point
[protected]
 

Definition at line 157 of file CtrlIconButton.cpp.

References m_bCapture, and m_bDown.

void CIconButtonCtrl::OnMouseMove UINT  nFlags,
CPoint  point
[protected]
 

Definition at line 115 of file CtrlIconButton.cpp.

References IDC_HAND, m_bCapture, m_bCursor, m_bDown, and theApp.

void CIconButtonCtrl::OnPaint  )  [protected]
 

Definition at line 201 of file CtrlIconButton.cpp.

References CoolInterface, m_bCapture, m_bDown, CCoolInterface::m_crBackCheckSel, CCoolInterface::m_crBackNormal, CCoolInterface::m_crBackSel, CCoolInterface::m_crBorder, CCoolInterface::m_crCmdText, CCoolInterface::m_crDisabled, CCoolInterface::m_crMidtone, CCoolInterface::m_crShadow, CShareazaApp::m_gdiFont, m_pImageList, NULL, and theApp.

void CIconButtonCtrl::OnRButtonDown UINT  nFlags,
CPoint  point
[protected]
 

Definition at line 183 of file CtrlIconButton.cpp.

void CIconButtonCtrl::OnRButtonUp UINT  nFlags,
CPoint  point
[protected]
 

Definition at line 188 of file CtrlIconButton.cpp.

BOOL CIconButtonCtrl::RemoveStyle  )  [protected]
 

Definition at line 97 of file CtrlIconButton.cpp.

Referenced by SetIcon().

void CIconButtonCtrl::SetHandCursor BOOL  bCursor  ) 
 

Definition at line 92 of file CtrlIconButton.cpp.

References m_bCursor.

Referenced by CSearchPadWnd::OnCreate(), CSearchInputBox::OnCreate(), and CHomeSearchCtrl::OnCreate().

void CIconButtonCtrl::SetIcon HICON  hIcon  ) 
 

Definition at line 86 of file CtrlIconButton.cpp.

References m_pImageList, and RemoveStyle().

void CIconButtonCtrl::SetIcon UINT  nIconID  ) 
 

Definition at line 81 of file CtrlIconButton.cpp.

Referenced by CSearchPadWnd::OnCreate(), CSearchInputBox::OnCreate(), CLibrarySettingsPage::OnInitDialog(), CDownloadsSettingsPage::OnInitDialog(), CBitTorrentSettingsPage::OnInitDialog(), CDownloadGroupDlg::OnInitDialog(), CSearchInputBox::OnSkinChange(), and CHomeSearchCtrl::Setup().

void CIconButtonCtrl::SetText LPCTSTR  pszText  ) 
 

Definition at line 72 of file CtrlIconButton.cpp.

Referenced by CSearchPanel::ShowStatus().


Member Data Documentation

BOOL CIconButtonCtrl::m_bCapture [protected]
 

Definition at line 38 of file CtrlIconButton.h.

Referenced by OnLButtonUp(), OnMouseMove(), and OnPaint().

BOOL CIconButtonCtrl::m_bCursor [protected]
 

Definition at line 40 of file CtrlIconButton.h.

Referenced by OnMouseMove(), and SetHandCursor().

BOOL CIconButtonCtrl::m_bDown [protected]
 

Definition at line 39 of file CtrlIconButton.h.

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

CImageList CIconButtonCtrl::m_pImageList [protected]
 

Definition at line 37 of file CtrlIconButton.h.

Referenced by OnPaint(), and SetIcon().


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