|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here! |
|
#1
|
|||
|
|||
|
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
|
|||
|
|||
|
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 |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > C Programming > Paint program in MFC |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|