Click here to Skip to main content
15,885,244 members
Articles / Desktop Programming / MFC
Article

An RGB chooser dialog

Rate me:
Please Sign up or sign in to vote.
1.73/5 (7 votes)
1 Oct 2000 48.3K   684   9   1
A simple color chooser dialog that uses slifer controls to allow the user to combine different RGB values
  • Download source files - 37 Kb
  • Sample Image - ColorDlg.gif

    Introduction

    This RGB Color dialog enables the user to change the color with Red, Green and Blue components using the slider control from values 0 to 255, mix them with different values to get new custom colors as desired. It also reports the values of each color component to the user through the text edit boxes as they change value in respond to the sliders' values.

    The Sample Application

    The sample MFC program demontrates the use of this dialog to change the back color of the view to the one selected in the RGB Color dialog.

    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
    Technical Lead Samimi Information Technology
    United Arab Emirates United Arab Emirates
    My company provides services in the fields of:

    LAN/WAN Networking
    Data Management and Security
    Data Recovery
    ERP/CRM Solutions
    IT Infrastructure Solutions
    Software/Hardware Sales/Service

    Comments and Discussions

     
    GeneralMy vote of 1 Pin
    phoaivu1-Dec-09 17:35
    phoaivu1-Dec-09 17:35 

    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.