Introduction
The key features are as follows:
ColorPicker
provides a default color panel, which includes over
144 frequent colors.
ColorPicker
provides a custom button for opening Windows Common
Color Select Dialog. You can select more color here.
ColorPicker
provides the color contrast between current
selection and new selection.
ColorPicker
provides a select button, when you hold the left
button of mouse on select button, the cursor has become to a color dropper like Photoshop and
Frontpage 2000. You can get any color on the screen via this dropper.
ColorPicker
shows both the RGB value and Hex Value of the
current selection color.
- The color panel will load new palette as soon as the system color range has
been changed.
ColorDropper
provides 6 color panels for choosing. You can
change it during run time.
- The most important thing is that, we provide the full source code (100%
MFC), �.
Screen Shots
(Screen 1)
(Screen 2)
(Screen 3)
How to use it
The steps for usage are as follows:
- Add code in those head files where you want to display Color Picker Dialog.
#include "FODropColorButton.h"
enum { IDD = IDD_DIALOG_COLORPICKER };
CFODropColorButton m_wndColor3;
CFODropColorButton m_wndColor2;
CFODropColorButton m_wndColor1;
CFOHyperLink m_newVersion;
- Add code in those files/events when you need to get color value.
CDialog::DoDataExchange(pDX);
DDX_Control(pDX, IDC_FO_TEST_BUTTON3, m_wndColor3);
DDX_Control(pDX, IDC_FO_TEST_BUTTON2, m_wndColor2);
DDX_Control(pDX, IDC_FO_TEST_BUTTON1, m_wndColor1);
DDX_FODropColorButton(pDX,IDC_FO_TEST_BUTTON1,crColor1);
DDX_FODropColorButton(pDX,IDC_FO_TEST_BUTTON2,crColor2);
DDX_FODropColorButton(pDX,IDC_FO_TEST_BUTTON3,crColor3);
Everything is done!
Technical Details
Color Picker Dialog is constructed with classes as follows;
- CFOColorButton File Reference:FOColorButton.h, FOColorButton.cpp
- CFOColorCellObj File Reference:FOColorCellObj.h, FOColorCellObj.cpp
- CFOColorDialogObj File Reference: FOColorDialog.h, FOColorDialog.cpp
- CFOColorPaletteControl File Reference:FOColorPaletteControl.h,
FOColorPaletteControl.cpp
- CFODropPaletteWndFile Reference:FODropPaletteWnd.h,
FODropPaletteWnd.cpp
- CFODropColorButton File Reference:FODropColorButton.h,
FODropColorButton.cpp
- CFODropColorPaletteControl File
Reference:FODropColorPaletteControl.h, FODropColorPaletteControl.cpp
- CFODropColorPaletteWnd File Reference:FODropColorPaletteWnd.h,
FODropColorPaletteWnd.cpp
- CFOPopupColorPaletteWndFile Reference:FOPopupColorPaletteWnd.h,
FOPopupColorPaletteWnd.cpp
All of the class inheritance diagrams are as follows:
\s
\s
\s
Click here to view Our online
profile and report bugs.
Update V1.5(New!)
- Add color palette support for color dialog.
- Add a cool drop color picker button.
- Fixed a few bugs.
Update V1.2
- Add a specify image static class.
- Add support 3D color table.
- Fixed a few bugs.