GME  13
Public Types | Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions
CColourPopup Class Reference

#include <ColourPopup.h>

Collaboration diagram for CColourPopup:
Collaboration graph
[legend]

List of all members.

Public Types

enum  { IDD = IDD_COLORPICKER_DIALOG }

Public Member Functions

 CColourPopup (CWnd *pParent=NULL)
virtual ~CColourPopup ()
void SetWindowSize (void)
void SetParameters (CRect rectBound, COLORREF crColour, bool rightSideClick, LPCTSTR szDefaultText=NULL, LPCTSTR szCustomText=NULL)
COLORREF GetSelectedColor (void) const
virtual void EndDialog (int nResult)
virtual BOOL PreTranslateMessage (MSG *pMsg)

Public Attributes

CRect m_RectBound
int m_nNumColours
int m_nNumColumns
int m_nNumRows
int m_nBoxSize
int m_nMargin
int m_nCurrentSel
int m_nChosenColourSel
CString m_strDefaultText
CString m_strCustomText
CRect m_CustomTextRect
CRect m_DefaultTextRect
CRect m_WindowRect
CFont m_Font
CPalette m_Palette
COLORREF m_crInitialColour
COLORREF m_crColour
CToolTipCtrl m_ToolTip
BOOL m_bChildWindowVisible
bool m_bRightSideClick
bool m_bFirstMouseMsgReceived

Static Public Attributes

static ColourTableEntry m_crColours []

Protected Member Functions

void Initialize (void)
int GetIndex (int row, int col) const
int GetRow (int nIndex) const
int GetColumn (int nIndex) const
void FindCellFromColour (COLORREF crColour)
BOOL GetCellRect (int nIndex, const LPRECT &rect)
void CreateToolTips (void)
void ChangeSelection (int nIndex)
void EndSelection (int nMessage)
void DrawCell (CDC *pDC, int nIndex)
COLORREF GetColour (int nIndex)
LPCTSTR GetColourName (int nIndex)
virtual BOOL OnInitDialog ()
afx_msg void OnDestroy ()
afx_msg void OnKeyDown (UINT nChar, UINT nRepCnt, UINT nFlags)
afx_msg void OnPaint ()
afx_msg void OnMouseMove (UINT nFlags, CPoint point)
afx_msg void OnLButtonUp (UINT nFlags, CPoint point)
afx_msg BOOL OnQueryNewPalette ()
afx_msg void OnPaletteChanged (CWnd *pFocusWnd)

Detailed Description

Definition at line 38 of file ColourPopup.h.


Member Enumeration Documentation

anonymous enum
Enumerator:
IDD 

Definition at line 49 of file ColourPopup.h.


Constructor & Destructor Documentation

CColourPopup::CColourPopup ( CWnd *  pParent = NULL)

Definition at line 104 of file ColourPopup.cpp.

Definition at line 110 of file ColourPopup.cpp.


Member Function Documentation

void CColourPopup::ChangeSelection ( int  nIndex) [protected]

Definition at line 395 of file ColourPopup.cpp.

void CColourPopup::CreateToolTips ( void  ) [protected]

Definition at line 381 of file ColourPopup.cpp.

void CColourPopup::DrawCell ( CDC *  pDC,
int  nIndex 
) [protected]

Definition at line 455 of file ColourPopup.cpp.

void CColourPopup::EndDialog ( int  nResult) [virtual]

Definition at line 890 of file ColourPopup.cpp.

void CColourPopup::EndSelection ( int  nMessage) [protected]

Definition at line 427 of file ColourPopup.cpp.

void CColourPopup::FindCellFromColour ( COLORREF  crColour) [protected]

Definition at line 324 of file ColourPopup.cpp.

BOOL CColourPopup::GetCellRect ( int  nIndex,
const LPRECT &  rect 
) [protected]

Definition at line 348 of file ColourPopup.cpp.

COLORREF CColourPopup::GetColour ( int  nIndex) [inline, protected]

Definition at line 90 of file ColourPopup.h.

LPCTSTR CColourPopup::GetColourName ( int  nIndex) [inline, protected]

Definition at line 91 of file ColourPopup.h.

int CColourPopup::GetColumn ( int  nIndex) const [protected]

Definition at line 312 of file ColourPopup.cpp.

int CColourPopup::GetIndex ( int  row,
int  col 
) const [protected]

Definition at line 283 of file ColourPopup.cpp.

int CColourPopup::GetRow ( int  nIndex) const [protected]

Definition at line 300 of file ColourPopup.cpp.

COLORREF CColourPopup::GetSelectedColor ( void  ) const [inline]

Definition at line 76 of file ColourPopup.h.

void CColourPopup::Initialize ( void  ) [protected]

Definition at line 236 of file ColourPopup.cpp.

void CColourPopup::OnDestroy ( ) [protected]

Definition at line 636 of file ColourPopup.cpp.

BOOL CColourPopup::OnInitDialog ( ) [protected, virtual]

Definition at line 601 of file ColourPopup.cpp.

void CColourPopup::OnKeyDown ( UINT  nChar,
UINT  nRepCnt,
UINT  nFlags 
) [protected]

Definition at line 644 of file ColourPopup.cpp.

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

Definition at line 855 of file ColourPopup.cpp.

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

Definition at line 816 of file ColourPopup.cpp.

void CColourPopup::OnPaint ( ) [protected]

Definition at line 793 of file ColourPopup.cpp.

void CColourPopup::OnPaletteChanged ( CWnd *  pFocusWnd) [protected]

Definition at line 882 of file ColourPopup.cpp.

Definition at line 876 of file ColourPopup.cpp.

BOOL CColourPopup::PreTranslateMessage ( MSG *  pMsg) [virtual]

Definition at line 898 of file ColourPopup.cpp.

void CColourPopup::SetParameters ( CRect  rectBound,
COLORREF  crColour,
bool  rightSideClick,
LPCTSTR  szDefaultText = NULL,
LPCTSTR  szCustomText = NULL 
)

Definition at line 226 of file ColourPopup.cpp.

void CColourPopup::SetWindowSize ( void  )

Definition at line 120 of file ColourPopup.cpp.


Member Data Documentation

Definition at line 67 of file ColourPopup.h.

Definition at line 69 of file ColourPopup.h.

Definition at line 68 of file ColourPopup.h.

Definition at line 64 of file ColourPopup.h.

Definition at line 52 of file ColourPopup.h.

Definition at line 64 of file ColourPopup.h.

Definition at line 61 of file ColourPopup.h.

Definition at line 61 of file ColourPopup.h.

Definition at line 62 of file ColourPopup.h.

Definition at line 56 of file ColourPopup.h.

Definition at line 58 of file ColourPopup.h.

Definition at line 57 of file ColourPopup.h.

Definition at line 56 of file ColourPopup.h.

Definition at line 54 of file ColourPopup.h.

Definition at line 55 of file ColourPopup.h.

Definition at line 55 of file ColourPopup.h.

Definition at line 63 of file ColourPopup.h.

Definition at line 53 of file ColourPopup.h.

Definition at line 60 of file ColourPopup.h.

Definition at line 59 of file ColourPopup.h.

Definition at line 65 of file ColourPopup.h.

Definition at line 61 of file ColourPopup.h.


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