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

C / C++ / MFC

 
GeneralRe: Titleless dialog Pin
Michael Dunn31-Dec-04 6:19
sitebuilderMichael Dunn31-Dec-04 6:19 
GeneralRe: Titleless dialog Pin
LiYS31-Dec-04 15:56
LiYS31-Dec-04 15:56 
QuestionMeaning of error code: 800a0030? Pin
Franz Klein30-Dec-04 20:41
Franz Klein30-Dec-04 20:41 
AnswerRe: Meaning of error code: 800a0030? Pin
PJ Arends30-Dec-04 21:05
professionalPJ Arends30-Dec-04 21:05 
AnswerRe: Meaning of error code: 800a0030? Pin
Michael P Butler30-Dec-04 23:34
Michael P Butler30-Dec-04 23:34 
GeneralRe: Meaning of error code: 800a0030? Pin
Franz Klein2-Jan-05 23:01
Franz Klein2-Jan-05 23:01 
GeneralSet font and color for text on dialog, please help! Pin
nguyenhoang30-Dec-04 19:57
nguyenhoang30-Dec-04 19:57 
GeneralRe: Set font and color for text on dialog, please help! Pin
V.30-Dec-04 21:24
professionalV.30-Dec-04 21:24 
Handle the ON_WM_CTLCOLOR() message
like this
HBRUSH CWFSEC2MailerTestDlg::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor){<br />
	HBRUSH hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor);<br />
	CBrush *brush;<br />
	brush = NULL;<br />
	// TODO:  Change any attributes of the DC here<br />
	CWnd* pStaticWnd = (CWnd*)GetDlgItem(IDC_STATIC_STATUS);<br />
	if(pWnd == pStaticWnd){<br />
		pDC->SetTextColor(RGB(0, 0, 255));<br />
	}										//end if<br />
	pStaticWnd = (CWnd*)GetDlgItem(IDC_STATIC_INFO_DOC);<br />
	if(pWnd == pStaticWnd){<br />
		if(lock_docstatus_text){<br />
			pDC->SetTextColor(RGB(0, 100, 200));<br />
		}									//end if<br />
		else{<br />
			pDC->SetTextColor(RGB(0, 0, 255));<br />
		}									//end else<br />
	}										//end if<br />
	pStaticWnd = (CWnd*)GetDlgItem(IDC_STATIC_INFO_SEND);<br />
	if(pWnd == pStaticWnd){<br />
		if(lock_sendstatus_text){<br />
			pDC->SetTextColor(RGB(0, 100, 200));<br />
		}									//end if<br />
		else{<br />
			pDC->SetTextColor(RGB(0, 0, 255));<br />
		}									//end else<br />
	}										//end if<br />
	// TODO:  Return a different brush if the default is not desired<br />
	return hbr;<br />
}											//end function OnCtlColor<br />


more info you can find on msdn I think.

good luck.

"If I don't see you in this world, I'll see you in the next one... and don't be late." ~ Jimi Hendrix
GeneralRe: Set font and color for text on dialog, please help! Pin
nguyenhoang1-Jan-05 0:37
nguyenhoang1-Jan-05 0:37 
GeneralTrouble with List Control and Dialog Pin
Archer28230-Dec-04 19:03
Archer28230-Dec-04 19:03 
GeneralRe: Trouble with List Control and Dialog Pin
Michael Dunn30-Dec-04 19:22
sitebuilderMichael Dunn30-Dec-04 19:22 
GeneralRe: Trouble with List Control and Dialog Pin
Archer28230-Dec-04 19:45
Archer28230-Dec-04 19:45 
GeneralRe: Trouble with List Control and Dialog Pin
PJ Arends30-Dec-04 20:22
professionalPJ Arends30-Dec-04 20:22 
GeneralRe: Trouble with List Control and Dialog Pin
Archer28230-Dec-04 20:29
Archer28230-Dec-04 20:29 
GeneralConnection with Oracle database without using ODBC (but Using dll or lib)through VC++ Pin
M Qaisar Ch30-Dec-04 18:44
sussM Qaisar Ch30-Dec-04 18:44 
GeneralBurn CD &quot;On the fly&quot; Pin
Manu Philip30-Dec-04 18:21
Manu Philip30-Dec-04 18:21 
GeneralRe: Burn CD &quot;On the fly&quot; Pin
Henry miller3-Jan-05 9:33
Henry miller3-Jan-05 9:33 
GeneralPreserve SPL/SHD in Print Processor Pin
RYU^^30-Dec-04 17:58
RYU^^30-Dec-04 17:58 
GeneralCOM port information Pin
vc-programmer-30-Dec-04 17:44
vc-programmer-30-Dec-04 17:44 
GeneralEvent Fire for Buttons created at Runtime Pin
Surya Prakash Adari30-Dec-04 17:30
Surya Prakash Adari30-Dec-04 17:30 
GeneralRe: Event Fire for Buttons created at Runtime Pin
ThatsAlok30-Dec-04 18:15
ThatsAlok30-Dec-04 18:15 
GeneralRunning exes from a MFC app Pin
SPARTAN-11730-Dec-04 17:22
SPARTAN-11730-Dec-04 17:22 
GeneralRe: Running exes from a MFC app Pin
ThatsAlok30-Dec-04 18:04
ThatsAlok30-Dec-04 18:04 
GeneralRe: Running exes from a MFC app Pin
Rahim Rattani30-Dec-04 18:11
Rahim Rattani30-Dec-04 18:11 
GeneralRe: Running exes from a MFC app Pin
SPARTAN-11731-Dec-04 15:24
SPARTAN-11731-Dec-04 15:24 

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.