Click here to Skip to main content
15,887,596 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: MFC CSocket class! Pin
led mike1-Jul-09 4:28
led mike1-Jul-09 4:28 
GeneralRe: MFC CSocket class! Pin
Hadi Dayvary1-Jul-09 5:16
professionalHadi Dayvary1-Jul-09 5:16 
GeneralRe: MFC CSocket class! Pin
led mike1-Jul-09 5:39
led mike1-Jul-09 5:39 
GeneralRe: MFC CSocket class! [modified] Pin
Moak18-Jul-09 4:36
Moak18-Jul-09 4:36 
GeneralRe: MFC CSocket class! Pin
Hadi Dayvary18-Jul-09 5:14
professionalHadi Dayvary18-Jul-09 5:14 
QuestionChange dialog bg-color? Pin
bosfan1-Jul-09 3:35
bosfan1-Jul-09 3:35 
AnswerRe: Change dialog bg-color? Pin
SandipG 1-Jul-09 4:15
SandipG 1-Jul-09 4:15 
GeneralRe: Change dialog bg-color? [modified] Pin
bosfan1-Jul-09 4:35
bosfan1-Jul-09 4:35 
Ok thanks for answer!!! Smile | :)

But i have a question, when i use WM_CTLCOLOR new color ist set for all controls on dialog, e.g. CEdit CStatic CComboBox etc., but not for dialog it self??
I can't find why?? Frown | :(
Here is source code:
HBRUSH CMyDialog::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
{
	//*
	//** No need to do this!
	//**
	//** HBRUSH hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor);
	//*/
	//
	//*
	//** Return the white brush.
	//*/
	switch(nCtlColor)
	{
	case CTLCOLOR_BTN:
		Sleep( 10); //Button control
		break;
	case CTLCOLOR_DLG:
		Sleep(10); //Dialog box newer stop here? :(
	case CTLCOLOR_EDIT:
		Sleep(10); // Edit control
		break;
	case CTLCOLOR_LISTBOX:
		Sleep(10); // List-box control
		break;
	case CTLCOLOR_MSGBOX:
		Sleep(10);
		break; //Message box
	case CTLCOLOR_SCROLLBAR:
		Sleep(19); //Scroll-bar control
		break;
	case CTLCOLOR_STATIC:
		Sleep(10); //Static control
		break;
	}	

	
	return m_objMyBrush; // in dialog  defined CBrush
}


Any idea here Smile | :)

regards
termal

modified on Wednesday, July 1, 2009 11:34 AM

GeneralRe: Change dialog bg-color? Pin
«_Superman_»1-Jul-09 16:46
professional«_Superman_»1-Jul-09 16:46 
GeneralRe: Change dialog bg-color? Pin
bosfan1-Jul-09 21:33
bosfan1-Jul-09 21:33 
QuestionLogger class -> write to file too slow Pin
Souldrift1-Jul-09 3:30
Souldrift1-Jul-09 3:30 
AnswerRe: Logger class -> write to file too slow Pin
Stuart Dootson1-Jul-09 3:34
professionalStuart Dootson1-Jul-09 3:34 
AnswerRe: Logger class -> write to file too slow Pin
Cedric Moonen1-Jul-09 3:35
Cedric Moonen1-Jul-09 3:35 
AnswerRe: Logger class -> write to file too slow Pin
Michael Schubert1-Jul-09 4:01
Michael Schubert1-Jul-09 4:01 
AnswerRe: Logger class -> write to file too slow Pin
David Crow1-Jul-09 4:52
David Crow1-Jul-09 4:52 
AnswerRe: Logger class -> write to file too slow Pin
Joe Woodbury1-Jul-09 6:06
professionalJoe Woodbury1-Jul-09 6:06 
AnswerRe: Logger class -> write to file too slow Pin
Chuck O'Toole1-Jul-09 10:31
Chuck O'Toole1-Jul-09 10:31 
GeneralRe: Logger class -> write to file too slow Pin
Souldrift1-Jul-09 21:54
Souldrift1-Jul-09 21:54 
GeneralRe: Logger class -> write to file too slow Pin
Michael Schubert1-Jul-09 23:25
Michael Schubert1-Jul-09 23:25 
Questionhow to detect Listctrl check box selection/deselection Pin
hemlat1-Jul-09 1:22
hemlat1-Jul-09 1:22 
AnswerRe: how to detect Listctrl check box selection/deselection Pin
Jijo.Raj1-Jul-09 1:45
Jijo.Raj1-Jul-09 1:45 
GeneralRe: how to detect Listctrl check box selection/deselection Pin
hemlat1-Jul-09 2:04
hemlat1-Jul-09 2:04 
GeneralRe: how to detect Listctrl check box selection/deselection Pin
Stuart Dootson1-Jul-09 2:40
professionalStuart Dootson1-Jul-09 2:40 
GeneralRe: how to detect Listctrl check box selection/deselection Pin
hemlat1-Jul-09 3:08
hemlat1-Jul-09 3:08 
GeneralRe: how to detect Listctrl check box selection/deselection Pin
CPallini1-Jul-09 3:21
mveCPallini1-Jul-09 3:21 

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.