Click here to Skip to main content
15,889,176 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to override the control Pin
Wes Aday23-Aug-06 4:11
professionalWes Aday23-Aug-06 4:11 
AnswerRe: How to override the control Pin
Hamid_RT24-Aug-06 7:55
Hamid_RT24-Aug-06 7:55 
Questionhave trouble with adding bitmap to menus Pin
zhonglin.liang23-Aug-06 2:35
zhonglin.liang23-Aug-06 2:35 
AnswerRe: have trouble with adding bitmap to menus Pin
kakan23-Aug-06 4:09
professionalkakan23-Aug-06 4:09 
Question[Message Deleted] Pin
ramanand_bulusu23-Aug-06 2:16
ramanand_bulusu23-Aug-06 2:16 
AnswerRe: Problem with COLOURREF Pin
toxcct23-Aug-06 2:19
toxcct23-Aug-06 2:19 
AnswerRe: Problem with COLOURREF Pin
Hamid_RT23-Aug-06 2:33
Hamid_RT23-Aug-06 2:33 
QuestionProblem with COLOURREF [modified] Pin
ramanand_bulusu23-Aug-06 2:12
ramanand_bulusu23-Aug-06 2:12 
i have declered a constants in a Header file in following way

const COLORREF RED = RGB(255,0,0);<br />
   const COLORREF GREEN = RGB(0,254,0);<br />
   const COLORREF BLUE = RGB(0,0,254);


after that i created a message handler like below for each colour

void CNEWWINDOWView::OnGreen() //where m_colour is the varialble declared in <br />
                                 View.<br />
{<br />
    m_colour=GREEN;<br />
    Invalidate();<br />
}<br />

now i have wriien in the ondraw as

CString  str2.Format("%d",m_colour);<br />
			 pDC->TextOut(400,10,"COLOUR:"+str2);


i am geting in the window the value of clour of red as 255,for green 65024,
for blue it is 16646144; why it is displaying like this?






-- modified at 8:22 Wednesday 23rd August, 2006
AnswerRe: Problem with COLOURREF Pin
Steve S23-Aug-06 2:14
Steve S23-Aug-06 2:14 
GeneralRe: Problem with COLOURREF Pin
ramanand_bulusu23-Aug-06 2:20
ramanand_bulusu23-Aug-06 2:20 
GeneralRe: Problem with COLOURREF Pin
Cedric Moonen23-Aug-06 2:25
Cedric Moonen23-Aug-06 2:25 
QuestionRe: Problem with COLOURREF [modified] Pin
ramanand_bulusu23-Aug-06 2:34
ramanand_bulusu23-Aug-06 2:34 
AnswerRe: Problem with COLOURREF Pin
Cedric Moonen23-Aug-06 2:40
Cedric Moonen23-Aug-06 2:40 
GeneralRe: Problem with COLOURREF Pin
Matt Godbolt23-Aug-06 2:47
Matt Godbolt23-Aug-06 2:47 
GeneralRe: Problem with COLOURREF Pin
Cedric Moonen23-Aug-06 2:52
Cedric Moonen23-Aug-06 2:52 
GeneralRe: Problem with COLOURREF Pin
Hamid_RT23-Aug-06 2:35
Hamid_RT23-Aug-06 2:35 
GeneralRe: Problem with COLOURREF Pin
Cedric Moonen23-Aug-06 2:49
Cedric Moonen23-Aug-06 2:49 
GeneralRe: Problem with COLOURREF Pin
ramanand_bulusu23-Aug-06 3:12
ramanand_bulusu23-Aug-06 3:12 
GeneralRe: Problem with COLOURREF Pin
Hamid_RT24-Aug-06 7:52
Hamid_RT24-Aug-06 7:52 
AnswerRe: Problem with COLOURREF Pin
Cedric Moonen23-Aug-06 2:22
Cedric Moonen23-Aug-06 2:22 
QuestionProblem with COLOURREF Pin
ramanand_bulusu23-Aug-06 2:28
ramanand_bulusu23-Aug-06 2:28 
AnswerRe: Problem with COLOURREF Pin
David Crow23-Aug-06 3:03
David Crow23-Aug-06 3:03 
GeneralRe: Problem with COLOURREF Pin
ramanand_bulusu23-Aug-06 3:09
ramanand_bulusu23-Aug-06 3:09 
GeneralRe: Problem with COLOURREF Pin
Cedric Moonen23-Aug-06 3:18
Cedric Moonen23-Aug-06 3:18 
AnswerRe: Problem with COLOURREF Pin
benjymous23-Aug-06 4:22
benjymous23-Aug-06 4:22 

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.