GME  13
Public Member Functions | Protected Member Functions | Protected Attributes
CColourPicker Class Reference

#include <ColourPicker.h>

List of all members.

Public Member Functions

 CColourPicker ()
 DECLARE_DYNCREATE (CColourPicker)
COLORREF GetColour ()
void SetColour (COLORREF crColour)
void SetDefaultText (LPCTSTR szDefaultText)
void SetCustomText (LPCTSTR szCustomText)
void SetTrackSelection (BOOL bTracking=TRUE)
BOOL GetTrackSelection ()
void SetSelectionMode (UINT nMode)
UINT GetSelectionMode ()
void SetBkColour (COLORREF crColourBk)
COLORREF GetBkColour ()
void SetTextColour (COLORREF crColourText)
COLORREF GetTextColour ()
virtual void DrawItem (LPDRAWITEMSTRUCT lpDrawItemStruct)
virtual ~CColourPicker ()

Protected Member Functions

virtual void PreSubclassWindow ()
void SetWindowSize ()
afx_msg BOOL OnClicked ()
afx_msg int OnCreate (LPCREATESTRUCT lpCreateStruct)
afx_msg LONG OnSelEndOK (UINT lParam, LONG wParam)
afx_msg LONG OnSelEndCancel (UINT lParam, LONG wParam)
afx_msg LONG OnSelChange (UINT lParam, LONG wParam)

Protected Attributes

BOOL m_bActive
BOOL m_bTrackSelection
COLORREF m_crColourBk
COLORREF m_crColourText
UINT m_nSelectionMode
CRect m_ArrowRect
CString m_strDefaultText
CString m_strCustomText

Detailed Description

Definition at line 38 of file ColourPicker.h.


Constructor & Destructor Documentation

Definition at line 61 of file ColourPicker.cpp.

Definition at line 74 of file ColourPicker.cpp.


Member Function Documentation

void CColourPicker::DrawItem ( LPDRAWITEMSTRUCT  lpDrawItemStruct) [virtual]

Definition at line 166 of file ColourPicker.cpp.

COLORREF CColourPicker::GetBkColour ( ) [inline]

Definition at line 60 of file ColourPicker.h.

Definition at line 240 of file ColourPicker.cpp.

Definition at line 57 of file ColourPicker.h.

COLORREF CColourPicker::GetTextColour ( ) [inline]

Definition at line 63 of file ColourPicker.h.

Definition at line 54 of file ColourPicker.h.

BOOL CColourPicker::OnClicked ( ) [protected]

Definition at line 145 of file ColourPicker.cpp.

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

Definition at line 135 of file ColourPicker.cpp.

LONG CColourPicker::OnSelChange ( UINT  lParam,
LONG  wParam 
) [protected]

Definition at line 125 of file ColourPicker.cpp.

LONG CColourPicker::OnSelEndCancel ( UINT  lParam,
LONG  wParam 
) [protected]

Definition at line 111 of file ColourPicker.cpp.

LONG CColourPicker::OnSelEndOK ( UINT  lParam,
LONG  wParam 
) [protected]

Definition at line 93 of file ColourPicker.cpp.

void CColourPicker::PreSubclassWindow ( ) [protected, virtual]

Definition at line 230 of file ColourPicker.cpp.

void CColourPicker::SetBkColour ( COLORREF  crColourBk)

Definition at line 252 of file ColourPicker.cpp.

void CColourPicker::SetColour ( COLORREF  crColour)

Definition at line 246 of file ColourPicker.cpp.

void CColourPicker::SetCustomText ( LPCTSTR  szCustomText)

Definition at line 271 of file ColourPicker.cpp.

void CColourPicker::SetDefaultText ( LPCTSTR  szDefaultText)

Definition at line 266 of file ColourPicker.cpp.

void CColourPicker::SetSelectionMode ( UINT  nMode) [inline]

Definition at line 56 of file ColourPicker.h.

void CColourPicker::SetTextColour ( COLORREF  crColourText)

Definition at line 259 of file ColourPicker.cpp.

void CColourPicker::SetTrackSelection ( BOOL  bTracking = TRUE) [inline]

Definition at line 53 of file ColourPicker.h.

void CColourPicker::SetWindowSize ( ) [protected]

Definition at line 279 of file ColourPicker.cpp.


Member Data Documentation

CRect CColourPicker::m_ArrowRect [protected]

Definition at line 91 of file ColourPicker.h.

Definition at line 86 of file ColourPicker.h.

Definition at line 86 of file ColourPicker.h.

COLORREF CColourPicker::m_crColourBk [protected]

Definition at line 88 of file ColourPicker.h.

COLORREF CColourPicker::m_crColourText [protected]

Definition at line 89 of file ColourPicker.h.

Definition at line 90 of file ColourPicker.h.

CString CColourPicker::m_strCustomText [protected]

Definition at line 93 of file ColourPicker.h.

CString CColourPicker::m_strDefaultText [protected]

Definition at line 92 of file ColourPicker.h.


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