Click here to Skip to main content
15,868,009 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: resize Frame Pin
Christian Graus4-Jan-06 12:31
protectorChristian Graus4-Jan-06 12:31 
AnswerRe: resize Frame Pin
vikas amin4-Jan-06 20:07
vikas amin4-Jan-06 20:07 
QuestionManaging Threads in VC++ Pin
pavanbabut4-Jan-06 10:43
pavanbabut4-Jan-06 10:43 
AnswerRe: Managing Threads in VC++ Pin
Blake Miller4-Jan-06 11:44
Blake Miller4-Jan-06 11:44 
GeneralRe: Managing Threads in VC++ Pin
pavanbabut4-Jan-06 12:04
pavanbabut4-Jan-06 12:04 
GeneralRe: Managing Threads in VC++ Pin
Blake Miller4-Jan-06 12:23
Blake Miller4-Jan-06 12:23 
GeneralRe: Managing Threads in VC++ Pin
vikas amin4-Jan-06 18:21
vikas amin4-Jan-06 18:21 
QuestionProblem with SetBkColor Pin
KellyR4-Jan-06 10:00
KellyR4-Jan-06 10:00 
Hi!

For some reason, when I'm calling SetBkColor on a device context, the color is just not changing. I've used this function dozens of times in other programs I've written and it's always worked. I have no idea why it isn't working now.

So my code looks like this:

SetBkColor(the_HDC, RGB(100, 255, 255));
TextOut(the_HDC, 100, 100, text, strlen(text));

The text draws fine, but it's always black. The variable 'text' is frequently changed, and always draws correctly, but the color does not change from RGB(0,0,0)

I'm not using double-buffering in this program so the HDC drawn to is the one the user is looking at. What could be wrong?

Thanks!

Kelly Ryan
AnswerRe: Problem with SetBkColor Pin
Office Lineman4-Jan-06 10:09
Office Lineman4-Jan-06 10:09 
GeneralRe: Problem with SetBkColor Pin
KellyR4-Jan-06 10:20
KellyR4-Jan-06 10:20 
GeneralRe: Problem with SetBkColor Pin
Office Lineman4-Jan-06 10:36
Office Lineman4-Jan-06 10:36 
QuestionTEXT FILE? Pin
pvatanpour4-Jan-06 9:08
pvatanpour4-Jan-06 9:08 
AnswerRe: TEXT FILE? Pin
Wes Aday4-Jan-06 9:35
professionalWes Aday4-Jan-06 9:35 
AnswerRe: TEXT FILE? Pin
David Crow4-Jan-06 9:42
David Crow4-Jan-06 9:42 
GeneralRe: TEXT FILE? Pin
Nish Nishant4-Jan-06 9:51
sitebuilderNish Nishant4-Jan-06 9:51 
GeneralRe: TEXT FILE? Pin
Prakash Nadar4-Jan-06 17:37
Prakash Nadar4-Jan-06 17:37 
AnswerRe: TEXT FILE? Pin
Christian Graus4-Jan-06 10:42
protectorChristian Graus4-Jan-06 10:42 
GeneralRe: TEXT FILE? Pin
Curtis Schlak.4-Jan-06 11:08
Curtis Schlak.4-Jan-06 11:08 
QuestionDetecting if Connected to Network Pin
User 127824-Jan-06 8:35
User 127824-Jan-06 8:35 
QuestionRe: Detecting if Connected to Network Pin
David Crow4-Jan-06 9:44
David Crow4-Jan-06 9:44 
AnswerRe: Detecting if Connected to Network Pin
User 127824-Jan-06 11:14
User 127824-Jan-06 11:14 
Questionocx in dll Pin
yolala4-Jan-06 7:59
yolala4-Jan-06 7:59 
QuestionStroustrup - A Brief Look at C++0x Pin
Kevin McFarlane4-Jan-06 5:40
Kevin McFarlane4-Jan-06 5:40 
AnswerRe: Stroustrup - A Brief Look at C++0x Pin
Maximilien4-Jan-06 6:31
Maximilien4-Jan-06 6:31 
AnswerRe: Stroustrup - A Brief Look at C++0x Pin
vikas amin4-Jan-06 8:10
vikas amin4-Jan-06 8:10 

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.