Click here to Skip to main content
15,924,193 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: popup menu in a listbox Pin
Hamid_RT13-Jun-06 19:41
Hamid_RT13-Jun-06 19:41 
AnswerRe: popup menu in a listbox Pin
Hamid_RT13-Jun-06 20:09
Hamid_RT13-Jun-06 20:09 
AnswerRe: popup menu in a listbox Pin
Hamid_RT14-Jun-06 19:12
Hamid_RT14-Jun-06 19:12 
QuestionFind a certain text string on the IE's current loaded webpage Pin
Joseph Lee13-Jun-06 15:13
Joseph Lee13-Jun-06 15:13 
AnswerRe: Find a certain text string on the IE's current loaded webpage Pin
Ganesh_T13-Jun-06 18:55
Ganesh_T13-Jun-06 18:55 
AnswerRe: Find a certain text string on the IE's current loaded webpage Pin
Laxman Auti13-Jun-06 18:55
Laxman Auti13-Jun-06 18:55 
QuestionopenGL,memory leak with glDrawPixels Pin
leon913-Jun-06 14:16
leon913-Jun-06 14:16 
Questioncolor change Pin
sidkraft13-Jun-06 14:09
sidkraft13-Jun-06 14:09 
I am trying to change colors using variables in the initialization of a RGB command. The following are the commands used in MFC/Visual C++ 6.0:
int a = 200;
int b = 180;
int c = 125;
CMainFrame::CMainFrame()
{
//Set color frame
colorbar.CreateSolidBrush(RGB (a, b, c));
}
void CMainFrame::OnPaint()
{
CPaintDC dc(this);
CRect rc(100,150,150,200);
a = 140;
dc.FillSolidRect(&rc,RGB(a,b,c));
}

No matter what I set a to, it always displays with the original value for color. Is there a way to change the RGB colors after initialization? Please let me know at sid_kraft@msn.com. Thanks in advance, Sid Kraft

Sid
AnswerRe: color change Pin
Sarath C13-Jun-06 17:49
Sarath C13-Jun-06 17:49 
AnswerRe: color change Pin
Hamid_RT13-Jun-06 19:39
Hamid_RT13-Jun-06 19:39 
QuestionAbout manifest Pin
angelfirefox13-Jun-06 13:46
angelfirefox13-Jun-06 13:46 
QuestionUnmanaged Threading Pin
Chris J13-Jun-06 10:49
Chris J13-Jun-06 10:49 
AnswerRe: Unmanaged Threading Pin
led mike13-Jun-06 10:59
led mike13-Jun-06 10:59 
GeneralRe: Unmanaged Threading Pin
Jun Du13-Jun-06 12:25
Jun Du13-Jun-06 12:25 
GeneralRe: Unmanaged Threading Pin
Graham Bradshaw13-Jun-06 12:33
Graham Bradshaw13-Jun-06 12:33 
GeneralRe: Unmanaged Threading Pin
Joe Woodbury13-Jun-06 13:07
professionalJoe Woodbury13-Jun-06 13:07 
GeneralRe: Unmanaged Threading Pin
Arvind Bharti13-Jun-06 20:23
Arvind Bharti13-Jun-06 20:23 
GeneralRe: Unmanaged Threading Pin
Joe Woodbury13-Jun-06 21:19
professionalJoe Woodbury13-Jun-06 21:19 
GeneralRe: Unmanaged Threading Pin
Sarath C13-Jun-06 19:40
Sarath C13-Jun-06 19:40 
GeneralRe: Unmanaged Threading Pin
Jun Du14-Jun-06 4:15
Jun Du14-Jun-06 4:15 
QuestionCButton, BS_BITMAP, LoadImage Issue and Question. Pin
Maximilien13-Jun-06 10:38
Maximilien13-Jun-06 10:38 
QuestionRe: CButton, BS_BITMAP, LoadImage Issue and Question. Pin
David Crow13-Jun-06 10:43
David Crow13-Jun-06 10:43 
QuestionWriteConsole() problem Pin
CoffeeAddict1913-Jun-06 10:00
CoffeeAddict1913-Jun-06 10:00 
QuestionRe: WriteConsole() problem Pin
David Crow13-Jun-06 10:06
David Crow13-Jun-06 10:06 
AnswerRe: WriteConsole() problem Pin
CoffeeAddict1914-Jun-06 5:45
CoffeeAddict1914-Jun-06 5: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.