The Color dialog box has a full version and a partial version of the user interface. Color Models Used by the Color Dialog Box.To enable a hook procedure for the Color dialog box.To provide a custom template for the Color dialog box.The following subjects are covered in this section To determine the cause of the error, call the CommDlgExtendedError function to retrieve the extended error value. If the user cancels the Color dialog box or an error occurs, ChooseColor returns FALSE and the rgbResult member is not defined. Use the GetRValue, GetGValue, and GetBValue macros to extract individual colors from an RGB color value. The individual values range from 0 through 255. The RGB color value specifies the intensities of the individual red, green, and blue colors that make up the selected color. The rgbResult member of the CHOOSECOLOR structure contains the RGB color value of the color selected by the user. If the user clicks the OK button, ChooseColor returns TRUE. The following illustration shows the full user interface version of the Color dialog box. For example, you can display either a full or partial user interface version of the dialog box. By setting different parameter values for the CHOOSECOLOR structure, you can affect how the Color dialog box appears. You create and display a Color dialog box by initializing a CHOOSECOLOR structure and passing the structure to the ChooseColor function. The Color dialog box returns the RGB value of the color selected by the user. Alternatively, the user can generate a color value by modifying the RGB or hue, saturation, luminosity (HSL) color values of the dialog box user interface. The user can choose a color from either a set of basic or custom color palettes. Displays a modal dialog box that allows the user to choose a specific color value.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |