Click here to Skip to main content
15,888,461 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionvs2005+WPCAP capture packets+callback function Pin
diaoxue16-Oct-09 20:04
diaoxue16-Oct-09 20:04 
QuestionVC6 installation error, what is this? Pin
includeh1016-Oct-09 13:39
includeh1016-Oct-09 13:39 
AnswerRe: VC6 installation error, what is this? Pin
«_Superman_»16-Oct-09 13:43
professional«_Superman_»16-Oct-09 13:43 
AnswerRe: VC6 installation error, what is this? Pin
Hans Dietrich16-Oct-09 13:46
mentorHans Dietrich16-Oct-09 13:46 
QuestionChanging the look and feel of a MFC dialog box Pin
burslem200116-Oct-09 12:15
burslem200116-Oct-09 12:15 
AnswerRe: Changing the look and feel of a MFC dialog box Pin
«_Superman_»16-Oct-09 13:24
professional«_Superman_»16-Oct-09 13:24 
GeneralRe: Changing the look and feel of a MFC dialog box Pin
burslem200116-Oct-09 18:06
burslem200116-Oct-09 18:06 
GeneralRe: Changing the look and feel of a MFC dialog box Pin
wangningyu16-Oct-09 20:32
wangningyu16-Oct-09 20:32 
you can add this with ClassWizard,or in the sources code to add it by yourself.
just like this:
C***Dlg.h
afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);

C***Dlg.cpp
BEGIN_MESSAGE_MAP
......
	ON_WM_CTLCOLOR()
......
END_MESSAGE_MAP()

HBRUSH C***Dlg::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor) 
{
	HBRUSH hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor);
	
	// TODO: Change any attributes of the DC here
	switch (pWnd->GetDlgCtrlID())
	{
	case IDC_STATIC1:
	case IDC_STATIC2:
		pDC->SetTextColor(RGB(255,0,0));
		break;
	case IDC_STATIC3:
	case IDC_STATIC4:
		pDC->SetTextColor(RGB(0,0,255));
		break;
	}    

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

Best Reguards !
by Koma
http://blog.csdn.net/wangningyu
GeneralRe: Changing the look and feel of a MFC dialog box Pin
burslem200119-Oct-09 1:28
burslem200119-Oct-09 1:28 
Questionmultithreading class [modified] Pin
es196816-Oct-09 11:25
es196816-Oct-09 11:25 
AnswerRe: multithreading class Pin
Moak17-Oct-09 1:27
Moak17-Oct-09 1:27 
GeneralRe: multithreading class Pin
es196817-Oct-09 2:04
es196817-Oct-09 2:04 
AnswerRe: multithreading class Pin
cmk17-Oct-09 4:22
cmk17-Oct-09 4:22 
GeneralRe: multithreading class Pin
es196817-Oct-09 6:16
es196817-Oct-09 6:16 
QuestionI just don't understand HWND Pin
GLGunblade16-Oct-09 8:24
GLGunblade16-Oct-09 8:24 
AnswerRe: I just don't understand HWND Pin
«_Superman_»16-Oct-09 8:44
professional«_Superman_»16-Oct-09 8:44 
GeneralRe: I just don't understand HWND Pin
GLGunblade16-Oct-09 8:52
GLGunblade16-Oct-09 8:52 
GeneralRe: I just don't understand HWND Pin
Richard MacCutchan16-Oct-09 9:05
mveRichard MacCutchan16-Oct-09 9:05 
GeneralRe: I just don't understand HWND Pin
GLGunblade16-Oct-09 9:11
GLGunblade16-Oct-09 9:11 
QuestionRe: I just don't understand HWND Pin
CPallini16-Oct-09 10:52
mveCPallini16-Oct-09 10:52 
AnswerRe: I just don't understand HWND Pin
GLGunblade16-Oct-09 17:39
GLGunblade16-Oct-09 17:39 
GeneralRe: I just don't understand HWND Pin
Richard MacCutchan16-Oct-09 22:19
mveRichard MacCutchan16-Oct-09 22:19 
GeneralRe: I just don't understand HWND Pin
GLGunblade17-Oct-09 15:10
GLGunblade17-Oct-09 15:10 
QuestionDDX_CONTROL VS. Create for the RichEditClass Pin
ForNow16-Oct-09 6:33
ForNow16-Oct-09 6:33 
AnswerRe: DDX_CONTROL VS. Create for the RichEditClass Pin
Iain Clarke, Warrior Programmer16-Oct-09 22:06
Iain Clarke, Warrior Programmer16-Oct-09 22:06 

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.