www.gusucode.com > 大学排课系统,VC++实现,能实现根据教师及课程资源自动排 > 大学排课系统,VC++实现,能实现根据教师及课程资源自动排课/ARRANGE/CHelpDlg.cpp
// CHelpDlg.cpp : implementation file // #include "stdafx.h" #include "arrange.h" #include "CHelpDlg.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CCHelpDlg dialog CCHelpDlg::CCHelpDlg(CWnd* pParent /*=NULL*/) : CDialog(CCHelpDlg::IDD, pParent) { //{{AFX_DATA_INIT(CCHelpDlg) //}}AFX_DATA_INIT } void CCHelpDlg::DoDataExchange(CDataExchange* pDX) { CDialog::DoDataExchange(pDX); //{{AFX_DATA_MAP(CCHelpDlg) DDX_Control(pDX, IDOK, m_OK); //}}AFX_DATA_MAP } BEGIN_MESSAGE_MAP(CCHelpDlg, CDialog) //{{AFX_MSG_MAP(CCHelpDlg) ON_WM_CTLCOLOR() //}}AFX_MSG_MAP END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // CCHelpDlg message handlers BOOL CCHelpDlg::OnInitDialog() { CDialog::OnInitDialog(); // TODO: Add extra initialization here m_OK.LoadBitmaps(IDB_BUTTON,5, 5, 5, 5, 4 ); return TRUE; // return TRUE unless you set the focus to a control // EXCEPTION: OCX Property Pages should return FALSE } HBRUSH CCHelpDlg::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor) { HBRUSH hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor); pDC->SetTextColor(RGB(0,0,255));//此处设置字体的颜色 // TODO: Return a different brush if the default is not desired return hbr; }