GME
13
|
#include <ColourPopup.h>
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) |
Definition at line 38 of file ColourPopup.h.
anonymous enum |
Definition at line 49 of file ColourPopup.h.
CColourPopup::CColourPopup | ( | CWnd * | pParent = NULL | ) |
Definition at line 104 of file ColourPopup.cpp.
CColourPopup::~CColourPopup | ( | ) | [virtual] |
Definition at line 110 of file ColourPopup.cpp.
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.
BOOL CColourPopup::OnQueryNewPalette | ( | ) | [protected] |
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.
Definition at line 67 of file ColourPopup.h.
Definition at line 69 of file ColourPopup.h.
Definition at line 68 of file ColourPopup.h.
COLORREF CColourPopup::m_crColour |
Definition at line 64 of file ColourPopup.h.
Definition at line 52 of file ColourPopup.h.
COLORREF CColourPopup::m_crInitialColour |
Definition at line 64 of file ColourPopup.h.
Definition at line 61 of file ColourPopup.h.
Definition at line 61 of file ColourPopup.h.
CFont CColourPopup::m_Font |
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.
CPalette CColourPopup::m_Palette |
Definition at line 63 of file ColourPopup.h.
Definition at line 53 of file ColourPopup.h.
CString CColourPopup::m_strCustomText |
Definition at line 60 of file ColourPopup.h.
CString CColourPopup::m_strDefaultText |
Definition at line 59 of file ColourPopup.h.
CToolTipCtrl CColourPopup::m_ToolTip |
Definition at line 65 of file ColourPopup.h.
Definition at line 61 of file ColourPopup.h.