Click here to Skip to main content
15,881,687 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: back ground color of Message Box Pin
Varghese Paul M3-Aug-08 20:48
Varghese Paul M3-Aug-08 20:48 
AnswerRe: back ground color of Message Box Pin
ThatsAlok3-Aug-08 21:30
ThatsAlok3-Aug-08 21:30 
GeneralRe: back ground color of Message Box Pin
Y_Kaushik3-Aug-08 21:39
Y_Kaushik3-Aug-08 21:39 
GeneralRe: back ground color of Message Box Pin
ThatsAlok3-Aug-08 22:34
ThatsAlok3-Aug-08 22:34 
GeneralRe: back ground color of Message Box Pin
ThatsAlok3-Aug-08 22:34
ThatsAlok3-Aug-08 22:34 
GeneralRe: back ground color of Message Box Pin
Y_Kaushik3-Aug-08 23:24
Y_Kaushik3-Aug-08 23:24 
GeneralRe: back ground color of Message Box Pin
ThatsAlok3-Aug-08 23:35
ThatsAlok3-Aug-08 23:35 
AnswerRe: back ground color of Message Box Pin
bolivar1234-Aug-08 4:49
bolivar1234-Aug-08 4:49 
Actually, there is a way to change the color of a messagebox. The key to it involves using the AfxHookWindowCreate function and a helper class. Take a look at this article [^] by Nicolas Bonamy.

Using the CMsgBoxDlg helper class in Nicolas's sample application, you could catch the WM_CTLCOLOR message and return a different colored brush. His article is not necessarily about changing the background color of a message box, but you can use the technique of AfxHookWindowCreate and a helper class for message box dialogs.

If you're interested, I could cook up a sample application and maybe write an article. The only thing is that there are a lot of articles already on CP about message boxes.
QuestionInlining Question Pin
Leslie Sanford3-Aug-08 19:36
Leslie Sanford3-Aug-08 19:36 
AnswerRe: Inlining Question Pin
vikas amin4-Aug-08 7:46
vikas amin4-Aug-08 7:46 
AnswerRe: Inlining Question Pin
not_in_use5-Aug-08 11:58
not_in_use5-Aug-08 11:58 
QuestionError: Message too long Pin
vikramaditya2343-Aug-08 19:32
vikramaditya2343-Aug-08 19:32 
QuestionRe: Error: Message too long Pin
David Crow4-Aug-08 3:11
David Crow4-Aug-08 3:11 
QuestionStrange problem about IOCP Pin
zengkun1003-Aug-08 16:43
zengkun1003-Aug-08 16:43 
QuestionIs there any tools or add-ins to help refactor the codes in vc6? Pin
fantasy12153-Aug-08 15:04
fantasy12153-Aug-08 15:04 
AnswerRe: Is there any tools or add-ins to help refactor the codes in vc6? Pin
bolivar1233-Aug-08 16:18
bolivar1233-Aug-08 16:18 
QuestionRe: Is there any tools or add-ins to help refactor the codes in vc6? Pin
fantasy12153-Aug-08 16:39
fantasy12153-Aug-08 16:39 
GeneralRe: Is there any tools or add-ins to help refactor the codes in vc6? Pin
fantasy12153-Aug-08 17:00
fantasy12153-Aug-08 17:00 
QuestionCreating a dos driver? [modified] Pin
Sauce!3-Aug-08 12:57
Sauce!3-Aug-08 12:57 
AnswerRe: Creating a dos driver? Pin
Sauce!5-Aug-08 20:59
Sauce!5-Aug-08 20:59 
QuestionStarting Windows mobile C++ Development Pin
Jamie Nordmeyer3-Aug-08 12:49
Jamie Nordmeyer3-Aug-08 12:49 
AnswerRe: Starting Windows mobile C++ Development Pin
Garth J Lancaster3-Aug-08 20:05
professionalGarth J Lancaster3-Aug-08 20:05 
QuestionProgress indicator in dialog title Pin
philrk3-Aug-08 11:00
philrk3-Aug-08 11:00 
AnswerRe: Progress indicator in dialog title Pin
Mark Salsbery4-Aug-08 7:51
Mark Salsbery4-Aug-08 7:51 
QuestionCreatefile in Vista Pin
RaymondM3-Aug-08 2:32
RaymondM3-Aug-08 2:32 

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.