#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2002
    Posts
    21
    Rep Power
    0

    Question Paint program in MFC


    im trying to make a basic paint program and i want the user to be able to enter R,G,B colours from 0 - 255. i just need to know how to make the number that the user types in affect the color
    e.g

    R: 255
    G:0
    B:0

    ------------------
    |change color|
    ------------------
    i want it to turn the color read

    i think i need to set them as TRUE or somting

    can some one help me.
  2. #2
  3. No Profile Picture
    Offensive Member
    Devshed Novice (500 - 999 posts)

    Join Date
    Oct 2002
    Location
    in the perfect world
    Posts
    622
    Rep Power
    28
    look for

    COLORREF and the RGB() macro

    these are then used in CreateXXX() functions.

    I suggest hash defining the common ones you use
    The essence of Christianity is told us in the Garden of Eden history. The fruit that was forbidden was on the Tree of Knowledge. The subtext is, All the suffering you have is because you wanted to find out what was going on. You could be in the Garden of Eden if you had just kept your f***ing mouth shut and hadn't asked any questions.

    Frank Zappa

IMN logo majestic logo threadwatch logo seochat tools logo