9#if !defined(OWL_CHOOSECO_H)
13#if defined(BI_HAS_PRAGMA_ONCE)
45 TData(
uint32 flags = 0,
bool allocCustColor =
false);
47 bool allocCustColors =
false);
101 CHOOSECOLOR&
GetCC();
102 void SetCC(
const CHOOSECOLOR& cc);
211 bool allocCustColor) {
Defines information necessary to initialize the dialog box with the user's color selection.
uint32 Flags
Flags can be a combination of the following values that control the appearance and functionality of t...
TColor * CustColors
Points to an array of 16 colors.
std::vector< TColor > CustColorsArray
uint32 Error
If the dialog box is successfully executed, Error is 0.
TColor Color
Specifies the color that is initially selected when the dialog box is created.
TData(uint32 flags=0, bool allocCustColor=false)
Wrapper for the Choose-Color common dialog.
static uint SetRGBMsgId
Registered messages this class sends (to itself).
void Init(TResId templateId)
void SetData(const TData &data)
Sets the data for this common dialog.
void SetCC(const CHOOSECOLOR &cc)
Set the CHOOSECOLOR data structure for this dialog.
void SetRGBColor(const TColor &color)
Sets the current RGB color for the open dialog box by sending a SetRGBMsgId.
CHOOSECOLOR & GetCC()
Return the CHOOSECOLOR data structure for this dialog.
auto DoExecute() -> int override
Execute the dialog to retrieve user's choice of color.
TResult EvSetRGBColor(TParam1, TParam2)
The user has clicked on a color.
auto DialogFunction(TMsgId, TParam1, TParam2) -> INT_PTR override
Override the virtual DialogFunction.
TChooseColorDialog(TWindow *parent, TData &data, TResId templateId=0, LPCTSTR title=0, TModule *module=0)
Initialize the choose color common dialog data members.
TData & GetData()
Return the data object for this common dialog.
Class wrapper for management of color values.
TCommonDialog(TWindow *parent, LPCTSTR title=nullptr, TModule *module=nullptr)
Invokes a TWindow constructor, passing the parent window parent, and constructs a common dialog box t...
ObjectWindows dynamic-link libraries (DLLs) construct an instance of TModule, which acts as an object...
TWindow, derived from TEventHandler and TStreamableBase, provides window-specific behavior and encaps...
TResult DefaultProcessing()
Handles default processing of events, which includes continued processing of menu/accelerators comman...
TResult SendMessage(TMsgId, TParam1=0, TParam2=0) const
Sends a message (msg) to a specified window or windows.
Definition of windowing system color classes.
Definition of Common Dialog abstract base class.
#define DECLARE_RESPONSE_TABLE(cls)
Object Windows Library (OWLNext Core).
UINT TMsgId
Message ID type.
LPARAM TParam2
Second parameter type.
WPARAM TParam1
First parameter type.
LRESULT TResult
Result type.