www.pudn.com > ±ÏÒµÁôÄî²á.rar > MyPropSheet.cpp


// MyPropSheet.cpp : implementation file 
// 
 
#include "stdafx.h" 
#include "Browse.h" 
#include "MyPropSheet.h" 
 
#ifdef _DEBUG 
#define new DEBUG_NEW 
#undef THIS_FILE 
static char THIS_FILE[] = __FILE__; 
#endif 
 
///////////////////////////////////////////////////////////////////////////// 
// CMyPropSheet 
 
IMPLEMENT_DYNAMIC(CMyPropSheet, CPropertySheet) 
 
CMyPropSheet::CMyPropSheet(UINT nIDCaption, CWnd* pParentWnd, UINT iSelectPage) 
	:CPropertySheet(nIDCaption, pParentWnd, iSelectPage) 
{ 
} 
 
CMyPropSheet::CMyPropSheet(LPCTSTR pszCaption, CWnd* pParentWnd, UINT iSelectPage) 
	:CPropertySheet(pszCaption, pParentWnd, iSelectPage) 
{ 
} 
CMyPropSheet::CMyPropSheet() 
{ 
} 
CMyPropSheet::~CMyPropSheet() 
{ 
} 
 
 
BEGIN_MESSAGE_MAP(CMyPropSheet, CPropertySheet) 
	//{{AFX_MSG_MAP(CMyPropSheet) 
	ON_WM_CTLCOLOR() 
	//}}AFX_MSG_MAP 
END_MESSAGE_MAP() 
 
///////////////////////////////////////////////////////////////////////////// 
// CMyPropSheet message handlers 
 
HBRUSH CMyPropSheet::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)  
{ 
	HBRUSH hbr = CPropertySheet::OnCtlColor(pDC, pWnd, nCtlColor); 
	 
	// TODO: Change any attributes of the DC here 
	if(nCtlColor==CTLCOLOR_DLG) 
	{ 
		HBRUSH b=CreateSolidBrush(RGB(253,201,250)); 
		return b; 
	} 
	// TODO: Return a different brush if the default is not desired 
	return hbr; 
}