Friday, September 15, 2006

Customizing Windows Color Picker Dialog

Extending the color picker dialog is useful for so many applications.
MFC has class (CColorDialog) for color dialog.CColorDialog is derived from CDialog.Follow these steps to create a custom color picker dialog.

1. Create a new class and derive from CColorDialog
2. Overide the OnInitDialog and add your custom code like, Increasing the window size, adding new controls change the existing controls etc.
3. Override DoModal and OnOK for doing extra initialization.


See here more details and Sample Code:

http://neuralnetworks.in/CustomColorDlg.html

0 Comments:

Post a Comment

<< Home