// onfirm.cpp : implementation file // #include "stdafx.h" #include "proto1.h" #include "confirm.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // Confirm dialog Confirm::Confirm(const char *title, CWnd* pParent /*=NULL*/) : m_CRC_Title(title), CDialog(Confirm::IDD, pParent) { //{{AFX_DATA_INIT(Confirm) // NOTE: the ClassWizard will add member initialization here //}}AFX_DATA_INIT } void Confirm::DoDataExchange(CDataExchange* pDX) { CDialog::DoDataExchange(pDX); //{{AFX_DATA_MAP(Confirm) // NOTE: the ClassWizard will add DDX and DDV calls here //}}AFX_DATA_MAP } BEGIN_MESSAGE_MAP(Confirm, CDialog) //{{AFX_MSG_MAP(Confirm) //}}AFX_MSG_MAP END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // Confirm message handlers BOOL Confirm::OnInitDialog() { CDialog::OnInitDialog(); // TODO: Add extra initialization here CFont font; if(!font.CreatePointFont(200,_T("Tahoma"))) MessageBox("font creation failed"); CStatic *pStatic = (CStatic*)GetDlgItem(IDC_STATIC3); pStatic->SetFont(&font); SetWindowText(m_CRC_Title.c_str()); return TRUE; // return TRUE unless you set the focus to a control // EXCEPTION: OCX Property Pages should return FALSE }