Professional User Interface Suite, Copyright FOSS Software Inc. Help Published with Permission.

Properties

m_bEnableBtnColorCustom Flag that indicates whether the "Color Selection" button should be displayed.
m_sBtnTextColorDefault Text of the "Default Color" button.
m_bEnableBtnColorDefault Flag that indicates whether the "Default Color" button should be displayed.
m_clrInitial RGB value before being changed.
m_hWndNotifyColorChanged Handle of the Window, which receives color change messages.
m_pClrValueFinal Pointer to the external COLORREF variable in which the result of the color selection should be stored (the CExtPopupColorMenuWnd::__ECST_NONE value means no color selection has been made and the CExtPopupColorMenuWnd::__ECST_BUTTON_CUSTOM value means the "Custom color" button has been clicked).
m_sBtnTextColorCustom Text of the "Color Selection" button.
m_sizeColorItemCell Specifies the size of the color cell in pixels.
m_sizeColorItemSpaces Specifies the distance between the color cells in pixels.

Classes

CExtPopupColorMenuWnd Default constructor.
~CExtPopupColorMenuWnd Destructor.
AddColor Adds the specified color description entry into the internal array of colors.
RemoveAllColors Cleans the internal array of color description entries.
SetColors8x2 Initializes the internal array of color description entries with the most often used 16 colors. Sets the color table layout to two rows and eight color cells in each row.
SetColors8x5 �Initializes the internal array of color description entries with the most often used 40 colors. Sets the color table layout to five rows and eight color cells in each row.
SetColorsInRow Sets the number of color cells in row.

Messages

g_nMsgNotifyColorChanged Is sent to the destination window when the mouse pointer hovers over a color sample.
g_nMsgNotifyColorChangedFinally Is sent to the destination window when the mouse is clicked on a color sample.
g_nMsgNotifyCustColor Is sent to the destination window when an item from the "Color Selection" menu is selected.

See Also

CExtPopupColorMenuWnd Overview | Hierarchy Chart