56 Cc.lStructSize =
sizeof Cc;
66 Cc.lpfnHook =
nullptr;
131 CustColorsArray =
other.CustColorsArray;
#define DIAG_DECLARE_GROUP(group)
#define TRACEX(group, level, message)
Definition of Choose Color Common Dialog class.
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.
TData & operator=(const TData &other)
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)
auto DoExecute() -> int override
Execute the dialog to retrieve user's choice of color.
~TChooseColorDialog() override
Destructor does nothing in non diagnostic versions of the library.
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.
Derived from TDialog, TCommonDialog is the abstract base class for TCommonDialog objects.
virtual INT_PTR DialogFunction(TMsgId, TParam1, TParam2)
Override this to process messages within the dialog function.
static INT_PTR CALLBACK StdDlgProc(HWND, UINT, WPARAM, LPARAM) noexcept
Callback procs for hooking TDialog to native window.
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...
TWindow * GetParentO() const
Return the OWL's parent for this window.
TModule * GetModule() const
Returns a pointer to the module object.
HWND GetHandle() const
Returns the handle of the window.
#define DEFINE_RESPONSE_TABLE1(cls, base)
Macro to define a response table for a class with one base.
Object Windows Library (OWLNext Core)
UINT TMsgId
Message ID type.
LPARAM TParam2
Second parameter type.
WPARAM TParam1
First parameter type.