Click here to Skip to main content
15,885,546 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Static Text Control Wordwrap Pin
Mark Salsbery12-May-07 6:11
Mark Salsbery12-May-07 6:11 
GeneralRe: Static Text Control Wordwrap Pin
Rick York12-May-07 7:21
mveRick York12-May-07 7:21 
AnswerRe: Static Text Control Wordwrap Pin
Gary R. Wheeler13-May-07 2:50
Gary R. Wheeler13-May-07 2:50 
QuestionMicrosoft Speech SDK Pin
smzhaq12-May-07 2:48
smzhaq12-May-07 2:48 
QuestionHow to show CTcxMsgbox and buttons in a different color [modified] Pin
Cyber Friend12-May-07 2:45
Cyber Friend12-May-07 2:45 
QuestionRe: How to show CTcxMsgbox and buttons in a different color Pin
Hamid_RT12-May-07 6:03
Hamid_RT12-May-07 6:03 
AnswerRe: How to show CTcxMsgbox and buttons in a different color Pin
Mark Salsbery12-May-07 6:27
Mark Salsbery12-May-07 6:27 
GeneralRe: How to show CTcxMsgbox and buttons in a different color Pin
Cyber Friend14-May-07 1:13
Cyber Friend14-May-07 1:13 
Hi,
CTcxMsgBox class is derived from CDialog so there is no WM_ERASEBKGND messsage to add the message handler.How to add a different background color for CDialog based class? There is no dialog resource associated for CTcxMsgBox class and it produces the MessageBox using the function

CDialog::InitModalIndirect( (LPCDLGTEMPLATE)_dlgData, m_pParentWnd );
When I put the function
SetDialogBkColor(RGB(206,207,206));
in the CWinApp derived application class's InitInstance() then MessageBox is being shown in new background color but buttons and CRichEditCtrl (which is for text message) are not shown in that color.

Now How to draw the Buttons in different background color?



best regards,
Cyber Friend
QuestionMouseover Pin
prathuraj12-May-07 2:41
prathuraj12-May-07 2:41 
AnswerRe: Mouseover Pin
Hans Dietrich12-May-07 3:04
mentorHans Dietrich12-May-07 3:04 
AnswerRe: Mouseover Pin
jk chan12-May-07 5:28
jk chan12-May-07 5:28 
GeneralRe: Mouseover Pin
Mark Salsbery12-May-07 6:14
Mark Salsbery12-May-07 6:14 
QuestionCListCrtl like in task manager Pin
Cedric Moonen12-May-07 2:25
Cedric Moonen12-May-07 2:25 
AnswerRe: CListCrtl like in task manager Pin
Hans Dietrich12-May-07 2:53
mentorHans Dietrich12-May-07 2:53 
GeneralRe: CListCrtl like in task manager Pin
Cedric Moonen12-May-07 2:58
Cedric Moonen12-May-07 2:58 
QuestionCallBack function Pin
Kiran Pinjala12-May-07 1:09
Kiran Pinjala12-May-07 1:09 
AnswerRe: CallBack function Pin
CPallini12-May-07 2:19
mveCPallini12-May-07 2:19 
AnswerRe: CallBack function Pin
Hamid_RT12-May-07 6:05
Hamid_RT12-May-07 6:05 
Questionsave results in xml Pin
lavy288312-May-07 0:31
lavy288312-May-07 0:31 
AnswerRe: save results in xml Pin
Mark Salsbery12-May-07 5:22
Mark Salsbery12-May-07 5:22 
AnswerRe: save results in xml Pin
Hamid_RT12-May-07 6:07
Hamid_RT12-May-07 6:07 
AnswerRe: save results in xml Pin
S Douglas13-May-07 2:08
professionalS Douglas13-May-07 2:08 
QuestionOpen() function not opening file Pin
neha.agarwal2711-May-07 23:50
neha.agarwal2711-May-07 23:50 
AnswerRe: Open() function not opening file Pin
Rajesh R Subramanian12-May-07 0:15
professionalRajesh R Subramanian12-May-07 0:15 
GeneralRe: Open() function not opening file Pin
neha.agarwal2712-May-07 0:23
neha.agarwal2712-May-07 0:23 

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.