Important: The information in this document is obsolete and should not be used for new development.
Getting Colors From and Setting Colors for a Custom Color Picker Dialog Box
When creating a custom dialog box for color pickers, your application must initially set two default colors: an original color and a new color. The original color is the color that the user is about to change, and the new color is the color to which the user changes the original. You use theSetPickerColor
function to set both colors.Whenever the user changes the current color, you need to be able to get the new color so that you can update your object accordingly. To determine what color the user is selecting, use the
GetPickerColor
function, as illustrated in Listing 2-8 (page 2-17) in Advanced Color Imaging on the Mac OS.