Click here to Skip to main content
15,867,308 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Please help me with the list control... Pin
normanS23-Jan-06 18:29
normanS23-Jan-06 18:29 
GeneralRe: Please help me with the list control... Pin
Owner drawn23-Jan-06 18:47
Owner drawn23-Jan-06 18:47 
GeneralRe: Please help me with the list control... Pin
normanS23-Jan-06 20:59
normanS23-Jan-06 20:59 
GeneralRe: Please help me with the list control... Pin
Stephen Hewitt23-Jan-06 21:25
Stephen Hewitt23-Jan-06 21:25 
GeneralRe: Please help me with the list control... Pin
Owner drawn23-Jan-06 21:45
Owner drawn23-Jan-06 21:45 
Questiongetting rgb value Pin
locoone23-Jan-06 16:06
locoone23-Jan-06 16:06 
AnswerRe: getting rgb value Pin
Gavin Taylor23-Jan-06 16:12
professionalGavin Taylor23-Jan-06 16:12 
AnswerRe: getting rgb value Pin
Owner drawn23-Jan-06 17:06
Owner drawn23-Jan-06 17:06 
locoone wrote:
how do you get the rgb value of the color you picked


To get RGB value what Gavin said is fine.

To get values of Red, Green, and Blue from a COLORREF you have to use:
BYTE nRed = GetRValue(clrRef);
BYTE nGreen = GetGValue(clrRef);
BYTE nBlue = GetBValue(clrRef);

For more details on how this works take a look in MSDN.

Jesus LovesRose | [Rose]
<marquee direction="up" height="40" scrolldelay="1" step="1" scrollamount="1" style="background:#aabbcc;border-bottom:thin solid 1px #6699cc">
--Owner DrawnRose | [Rose]
--Nothing special
--Defeat is temporary but surrender is permanent
--Never say quits
--Jesus is LordRose | [Rose]

GeneralRe: getting rgb value Pin
Gavin Taylor23-Jan-06 17:21
professionalGavin Taylor23-Jan-06 17:21 
GeneralRe: getting rgb value Pin
Owner drawn23-Jan-06 17:29
Owner drawn23-Jan-06 17:29 
GeneralRe: getting rgb value Pin
Gavin Taylor23-Jan-06 17:31
professionalGavin Taylor23-Jan-06 17:31 
QuestionWinsock server but with limited access. Pin
Stephen Hewitt23-Jan-06 15:54
Stephen Hewitt23-Jan-06 15:54 
AnswerRe: Winsock server but with limited access. Pin
Gavin Taylor23-Jan-06 16:26
professionalGavin Taylor23-Jan-06 16:26 
GeneralRe: Winsock server but with limited access. Pin
Stephen Hewitt23-Jan-06 16:30
Stephen Hewitt23-Jan-06 16:30 
QuestionCustom Tool Bar Event Handler Pin
BlitzPackage23-Jan-06 15:51
BlitzPackage23-Jan-06 15:51 
QuestionRe: Custom Tool Bar Event Handler Pin
Owner drawn23-Jan-06 17:08
Owner drawn23-Jan-06 17:08 
AnswerRe: Custom Tool Bar Event Handler Pin
BlitzPackage24-Jan-06 0:03
BlitzPackage24-Jan-06 0:03 
GeneralRe: Custom Tool Bar Event Handler Pin
Owner drawn24-Jan-06 0:11
Owner drawn24-Jan-06 0:11 
GeneralRe: Custom Tool Bar Event Handler Pin
BlitzPackage24-Jan-06 2:05
BlitzPackage24-Jan-06 2:05 
GeneralRe: Custom Tool Bar Event Handler Pin
Owner drawn24-Jan-06 16:49
Owner drawn24-Jan-06 16:49 
QuestionVariable Baud Rate Pin
IceBerG7123-Jan-06 15:33
IceBerG7123-Jan-06 15:33 
AnswerRe: Variable Baud Rate Pin
Ryan Binns23-Jan-06 17:10
Ryan Binns23-Jan-06 17:10 
AnswerRe: Variable Baud Rate Pin
normanS23-Jan-06 18:41
normanS23-Jan-06 18:41 
QuestionDoModal throws an access violation only for one language Pin
A_L23-Jan-06 13:19
A_L23-Jan-06 13:19 
Questionkeyboard event during long lasting loop Pin
wpuelm23-Jan-06 12:45
wpuelm23-Jan-06 12:45 

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.