Click here to Skip to main content
15,887,676 members
Articles / Desktop Programming / MFC
Article

Xguiplus - A set of Photoshop's-like color pickers

Rate me:
Please Sign up or sign in to vote.
4.75/5 (12 votes)
14 Jul 2002 86K   2.5K   32   11
An MFC compliant Adobe Photoshop's-like Color Picker from xgui

Image 1

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

License

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


Written By
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
GeneralMy vote of 5 Pin
lllxy19-May-13 1:05
lllxy19-May-13 1:05 
GeneralA little problem Pin
valleskon12-Oct-06 18:48
valleskon12-Oct-06 18:48 
GeneralA little bug found: Pin
MaxVolgin30-May-06 3:01
MaxVolgin30-May-06 3:01 
AnswerRe: A little bug found: Pin
John Chapdelaine27-Aug-06 6:03
John Chapdelaine27-Aug-06 6:03 
GeneralThanx, Pin
EPulse8-May-05 2:36
EPulse8-May-05 2:36 
GeneralHelp Pin
DuFF7-Feb-03 17:01
DuFF7-Feb-03 17:01 
GeneralStrange bug..solved. Pin
Andreas Muegge16-Sep-02 6:02
Andreas Muegge16-Sep-02 6:02 
GeneralRe: Strange bug..solved. Pin
DarkoK16-Jul-03 17:31
DarkoK16-Jul-03 17:31 
GeneralGood Job Pin
John O'Byrne22-Jul-02 4:58
John O'Byrne22-Jul-02 4:58 
GeneralVery good but... Pin
Andreas Muegge22-Jul-02 4:18
Andreas Muegge22-Jul-02 4:18 
GeneralRe: Very good but... Pin
dswigger22-Jul-02 7:12
dswigger22-Jul-02 7:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.