
Introduction
Jack Mesic wrote an extension to xgui written by Bobi B. xgui has a Photoshop-like color chooser. I think it is an incredible job and only added the following:
- Interactive numerical HSV and RGB representations
- Interactive hexadecimal representation (HTML)
Jacks version.
Bobi B's original version
How to use it:
Very easy! Simply add the following code in the header file of the class where you want to display the Color Picker Dialog:
#include "GTColorDialogDlg.h"
And in the .cpp file:
CGTColorDialogDlg dlg
dlg.SetColor(RGB(0,0,255));
int nResponse = dlg.DoModal()
if (nResponse == IDOK)
{
COLORREF crReturn = dlg.GetColor();
}
That's all
This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.
A list of licenses authors might use can be found here