Click here to Skip to main content
15,900,378 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: A better System( ... ) call? Pin
mike-o24-Jun-04 5:29
mike-o24-Jun-04 5:29 
GeneralInterpreting strings as packed binary data Pin
NizZy23-Jun-04 12:18
NizZy23-Jun-04 12:18 
GeneralRe: Interpreting strings as packed binary data Pin
NizZy23-Jun-04 12:28
NizZy23-Jun-04 12:28 
Generalnamed pipe problem Pin
pnpfriend23-Jun-04 11:20
pnpfriend23-Jun-04 11:20 
GeneralNeed Map to Database Ideas Pin
macbeth7623-Jun-04 10:20
macbeth7623-Jun-04 10:20 
GeneralRe: Need Map to Database Ideas Pin
Anthony_Yio23-Jun-04 16:38
Anthony_Yio23-Jun-04 16:38 
GeneralChanging fontcolor Pin
Wim Summer23-Jun-04 9:42
sussWim Summer23-Jun-04 9:42 
GeneralRe: Changing fontcolor Pin
bneacetp23-Jun-04 10:04
bneacetp23-Jun-04 10:04 
Wim Summer wrote:
How could I change the fontcolor of a static control or edit box or button, etc.

Handle the WM_CTLCOLOR message of your dialog box.

Try something along the lines of:

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

	// TODO:  Change any attributes of the DC here
<code>	if(pWnd->GetDlgCtrlID() == IDC_STATIC)
	{
		pDC->SetTextColor(RGB(0,128,0));
	}</code>

	// TODO:  Return a different brush if the default is not desired
	return hbr;
}


Happy Programming and God Bless!

"Your coding practices might be buggy, but your code is always right."

Internet::WWW::CodeProject::bneacetp
GeneralChanging the fontcolor. Pin
Wim Summer23-Jun-04 9:37
sussWim Summer23-Jun-04 9:37 
GeneralRe: Changing the fontcolor. Pin
User 58385223-Jun-04 19:11
User 58385223-Jun-04 19:11 
GeneralProblems with Bitmaps Pin
Member 114074823-Jun-04 9:29
Member 114074823-Jun-04 9:29 
GeneralRe: Problems with Bitmaps Pin
PJ Arends23-Jun-04 10:21
professionalPJ Arends23-Jun-04 10:21 
GeneralRe: Problems with Bitmaps Pin
Member 114074823-Jun-04 11:06
Member 114074823-Jun-04 11:06 
GeneralLPDISPATCH help me Pin
Nitro_gen23-Jun-04 9:16
Nitro_gen23-Jun-04 9:16 
GeneralRe: LPDISPATCH help me Pin
Anthony_Yio23-Jun-04 16:33
Anthony_Yio23-Jun-04 16:33 
GeneralSetting a Custom Background for the Main Menu Bar Pin
Steve Thresher23-Jun-04 9:13
Steve Thresher23-Jun-04 9:13 
GeneralWant help in learning Unicode Usage Pin
Member 119592223-Jun-04 8:53
Member 119592223-Jun-04 8:53 
GeneralString formatting question Pin
Nick Parker23-Jun-04 8:49
protectorNick Parker23-Jun-04 8:49 
GeneralRe: String formatting question Pin
palbano23-Jun-04 8:59
palbano23-Jun-04 8:59 
GeneralRe: String formatting question Pin
Nick Parker23-Jun-04 9:17
protectorNick Parker23-Jun-04 9:17 
GeneralRe: String formatting question Pin
PJ Arends23-Jun-04 10:34
professionalPJ Arends23-Jun-04 10:34 
GeneralRe: String formatting question Pin
cmk23-Jun-04 10:28
cmk23-Jun-04 10:28 
GeneralRe: String formatting question Pin
Michael Dunn23-Jun-04 13:57
sitebuilderMichael Dunn23-Jun-04 13:57 
QuestionWhat is SetModifiedFlag() In SDI Project Pin
jerry1211a23-Jun-04 8:42
jerry1211a23-Jun-04 8:42 
AnswerRe: What is SetModifiedFlag() In SDI Project Pin
palbano23-Jun-04 9:04
palbano23-Jun-04 9:04 

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.