Click here to Skip to main content
15,891,136 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Image\Video Compression for Video Streaming Pin
Rajesh R Subramanian12-May-08 18:57
professionalRajesh R Subramanian12-May-08 18:57 
AnswerRe: Image\Video Compression for Video Streaming Pin
Rajesh R Subramanian12-May-08 19:58
professionalRajesh R Subramanian12-May-08 19:58 
Questionproblem with dialog background color Pin
sarat12-May-08 11:55
sarat12-May-08 11:55 
AnswerRe: problem with dialog background color Pin
Naveen12-May-08 14:46
Naveen12-May-08 14:46 
AnswerRe: problem with dialog background color [modified] Pin
namaskaaram12-May-08 18:33
namaskaaram12-May-08 18:33 
GeneralRe: problem with dialog background color Pin
namaskaaram12-May-08 18:42
namaskaaram12-May-08 18:42 
AnswerRe: problem with dialog background color Pin
Hamid_RT12-May-08 19:23
Hamid_RT12-May-08 19:23 
AnswerRe: problem with dialog background color Pin
Nitheesh George13-May-08 0:27
Nitheesh George13-May-08 0:27 
Hi
Handle the WM_CTLCOLORDLG and place your painting code inside the handler.

<br />
<br />
HBRUSH CBkColorDlg::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)<br />
{<br />
	HBRUSH hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor);<br />
<br />
	<br />
<br />
	// TODO:  Change any attributes of the DC here<br />
	<br />
	if(nCtlColor == CTLCOLOR_DLG)<br />
	{<br />
		hbr = CreateSolidBrush(RGB(2,22,222));<br />
	}<br />
	else if(nCtlColor == CTLCOLOR_STATIC)<br />
	{<br />
		pDC->SetBkMode(TRANSPARENT);<br />
		hbr = CreateSolidBrush(RGB(2,22,222));<br />
	}<br />
<br />
	// TODO:  Return a different brush if the default is not desired<br />
	return hbr;<br />
}<br />
<br />


that's it

Regargs

Nitheesh
GeneralRe: problem with dialog background color Pin
Mark Salsbery13-May-08 6:12
Mark Salsbery13-May-08 6:12 
QuestionCRecordView, finding and scrolling Pin
Anders Gustafsson12-May-08 7:57
Anders Gustafsson12-May-08 7:57 
QuestionRe: CRecordView, finding and scrolling Pin
David Crow12-May-08 8:49
David Crow12-May-08 8:49 
AnswerRe: CRecordView, finding and scrolling [modified] Pin
Anders Gustafsson12-May-08 9:01
Anders Gustafsson12-May-08 9:01 
QuestionRe: CRecordView, finding and scrolling Pin
David Crow12-May-08 10:11
David Crow12-May-08 10:11 
AnswerRe: CRecordView, finding and scrolling Pin
Anders Gustafsson12-May-08 23:53
Anders Gustafsson12-May-08 23:53 
QuestionBalloon on system tray Pin
capint12-May-08 5:16
capint12-May-08 5:16 
AnswerRe: Balloon on system tray Pin
Mark Salsbery12-May-08 5:23
Mark Salsbery12-May-08 5:23 
AnswerRe: Balloon on system tray Pin
Iain Clarke, Warrior Programmer12-May-08 5:29
Iain Clarke, Warrior Programmer12-May-08 5:29 
GeneralRe: Balloon on system tray Pin
capint12-May-08 6:14
capint12-May-08 6:14 
GeneralRe: Balloon on system tray Pin
capint12-May-08 7:23
capint12-May-08 7:23 
GeneralRe: Balloon on system tray Pin
Iain Clarke, Warrior Programmer12-May-08 7:41
Iain Clarke, Warrior Programmer12-May-08 7:41 
QuestionVC++ 6.0 Output file name for MFC extension DLL Pin
bob1697212-May-08 4:01
bob1697212-May-08 4:01 
AnswerRe: VC++ 6.0 Output file name for MFC extension DLL Pin
Rajkumar R12-May-08 5:34
Rajkumar R12-May-08 5:34 
GeneralRe: VC++ 6.0 Output file name for MFC extension DLL Pin
bob1697212-May-08 6:39
bob1697212-May-08 6:39 
QuestionHow to get the text from html text box into custom web browser which is created using IWebBrowser2 Pin
Member 462021612-May-08 2:55
Member 462021612-May-08 2:55 
AnswerRe: How to get the text from html text box into custom web browser which is created using IWebBrowser2 Pin
Rajkumar R12-May-08 5:09
Rajkumar R12-May-08 5:09 

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.