uLib  User mode C/C++ extended API library for Win32 programmers.
ColorDialog Class Reference

#include <uLib/StdDlg.h>

Inheritance diagram for ColorDialog:

Detailed Description

Standard Color selection dialog..

The inherited CHOOSECOLOR fields are used for Execute calls.
rgbResult is the in/out buffer for the current/selected color.
Colors is the buffer for lpCustColors.

See also [MSDN} CHOOSECOLOR, ChooseColor()

Definition at line 270 of file StdDlg.h.

Public Data

COLORREF Colors [16]
 

Public Functions

 ColorDialog ()
 
void SetOwner (HWND Owner, HINSTANCE hInst=NULL)
 
bool Execute ()
 

Constructor & Destructor Documentation

◆ ColorDialog()

ColorDialog::ColorDialog ( )

Definition at line 370 of file StdDlg.cpp.

Member Function Documentation

◆ SetOwner()

void ColorDialog::SetOwner ( HWND  Owner,
HINSTANCE  hInst = NULL 
)

Definition at line 382 of file StdDlg.cpp.

◆ Execute()

bool ColorDialog::Execute ( )
inline

Execute the standard color selection dialog.
The selected color is returned in rgbResult.

Definition at line 289 of file StdDlg.h.

Member Data Documentation

◆ Colors

COLORREF ColorDialog::Colors[16]

Custom colors to/from the dialog.

Definition at line 281 of file StdDlg.h.


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