Click here to Skip to main content
15,895,606 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: check existence of file in C++ Pin
Dan22-Feb-09 21:25
Dan22-Feb-09 21:25 
QuestionHow to check whether system is connected to internet using VC++? Pin
Supra221-Feb-09 3:02
Supra221-Feb-09 3:02 
AnswerRe: How to check whether system is connected to internet using VC++? Pin
Iain Clarke, Warrior Programmer21-Feb-09 11:46
Iain Clarke, Warrior Programmer21-Feb-09 11:46 
AnswerRe: How to check whether system is connected to internet using VC++? Pin
David Crow21-Feb-09 14:35
David Crow21-Feb-09 14:35 
Questionhow do i read the files from executable file? Pin
balukk21-Feb-09 2:17
balukk21-Feb-09 2:17 
AnswerRe: how do i read the files from executable file? Pin
Iain Clarke, Warrior Programmer21-Feb-09 2:25
Iain Clarke, Warrior Programmer21-Feb-09 2:25 
QuestionRe: how do i read the files from executable file? Pin
David Crow21-Feb-09 14:36
David Crow21-Feb-09 14:36 
QuestionOnCtlColor not working fine in case of PropertyPage. Pin
Le@rner21-Feb-09 0:42
Le@rner21-Feb-09 0:42 
Hi all,

i m write code on OnCtlColor function for color the controls.

HBRUSH CMyPropertyPage2::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
{
	HBRUSH hbr = CPropertyPage::OnCtlColor(pDC, pWnd, nCtlColor);

	switch (nCtlColor)
	{
		case CTLCOLOR_EDIT:
			pDC->SetTextColor(RGB(0,0,0));
			pDC->SetBkColor(RGB(255,255,255));
			return hbr;

		case CTLCOLOR_STATIC:
			
			LOGBRUSH logbrush;
			m_brush.GetLogBrush( &logbrush );
			pDC->SetTextColor(RGB(0,0,0));
			pDC->SetBkColor(logbrush.lbColor);
			return m_brush;
			

		case CTLCOLOR_BTN:
		case CTLCOLOR_MSGBOX:
		case CTLCOLOR_DLG:
			return m_brush;
		
		default:
			return m_brush;
	}

}


when i use this same code for dialog box its working fine,but in case of property pages its not working fine.

the problem is that its not color the background of RadioBox,CheckBox,GroupBox type controls.

please help me for this.

and tell me solution for this.

thanks in advance

To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.

AnswerRe: OnCtlColor not working fine in case of PropertyPage. Pin
Iain Clarke, Warrior Programmer21-Feb-09 2:28
Iain Clarke, Warrior Programmer21-Feb-09 2:28 
GeneralRe: OnCtlColor not working fine in case of PropertyPage. Pin
Le@rner23-Feb-09 17:26
Le@rner23-Feb-09 17:26 
GeneralRe: OnCtlColor not working fine in case of PropertyPage. Pin
Iain Clarke, Warrior Programmer23-Feb-09 22:11
Iain Clarke, Warrior Programmer23-Feb-09 22:11 
GeneralRe: OnCtlColor not working fine in case of PropertyPage. Pin
Le@rner23-Feb-09 22:15
Le@rner23-Feb-09 22:15 
QuestionConversion VC++6.0 to VC++.net Pin
Anu_Bala21-Feb-09 0:12
Anu_Bala21-Feb-09 0:12 
AnswerRe: Conversion VC++6.0 to VC++.net Pin
Gary R. Wheeler21-Feb-09 2:39
Gary R. Wheeler21-Feb-09 2:39 
QuestionVS2008 Pin
rasmirv20-Feb-09 22:39
rasmirv20-Feb-09 22:39 
AnswerRe: VS2008 Pin
Rajesh R Subramanian21-Feb-09 21:11
professionalRajesh R Subramanian21-Feb-09 21:11 
Questionhow to display Images in ListBox Rows. [modified] Pin
hemlat20-Feb-09 22:22
hemlat20-Feb-09 22:22 
AnswerRe: how to display Images in ListBox Rows. Pin
Gary R. Wheeler21-Feb-09 2:41
Gary R. Wheeler21-Feb-09 2:41 
AnswerRe: how to display Images in ListBox Rows. Pin
SandipG 21-Feb-09 8:58
SandipG 21-Feb-09 8:58 
QuestionHelp requested: "Debug assert failed" with process hang Pin
Andrew McAuley20-Feb-09 22:20
Andrew McAuley20-Feb-09 22:20 
AnswerRe: Help requested: "Debug assert failed" with process hang Pin
Gary R. Wheeler21-Feb-09 2:48
Gary R. Wheeler21-Feb-09 2:48 
GeneralRe: Help requested: "Debug assert failed" with process hang Pin
Andrew McAuley21-Feb-09 7:53
Andrew McAuley21-Feb-09 7:53 
GeneralRe: Help requested: "Debug assert failed" with process hang Pin
Gary R. Wheeler21-Feb-09 9:24
Gary R. Wheeler21-Feb-09 9:24 
GeneralRe: Help requested: "Debug assert failed" with process hang Pin
Andrew McAuley21-Feb-09 11:45
Andrew McAuley21-Feb-09 11:45 
GeneralRe: Help requested: "Debug assert failed" with process hang Pin
Gary R. Wheeler21-Feb-09 15:32
Gary R. Wheeler21-Feb-09 15: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.