|
// PrinterPage.cpp : implementation file
//
#include "stdafx.h"
#include "Wiz.h"
#include "PrinterPage.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CPrinterPage dialog
CPrinterPage::CPrinterPage(CWnd* pParent /*=NULL*/)
: CNewWizPage(CPrinterPage::IDD, pParent)
{
//{{AFX_DATA_INIT(CPrinterPage)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
}
void CPrinterPage::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CPrinterPage)
DDX_Control(pDX, ST_CAPTION, m_CaptionCtrl);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CPrinterPage, CNewWizPage)
//{{AFX_MSG_MAP(CPrinterPage)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CPrinterPage message handlers
BOOL CPrinterPage::OnInitDialog()
{
CNewWizPage::OnInitDialog();
// for this page, we will use the base classes' large font
m_CaptionCtrl.SetFont(&m_LargeFont, TRUE);
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
BOOL CPrinterPage::OnQueryCancel()
{
if (AfxMessageBox("Are you sure you want to cancel?", MB_YESNO | MB_ICONQUESTION) == IDNO) return FALSE;
return TRUE;
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.
A list of licenses authors might use can be found here
Bob Pittenger is founder and President of Starpoint Software Inc. He holds a B.A. degree from Miami University, M.S. and Ph.D. degrees from Purdue University, and an MBA from Xavier University. He has been programming since 1993, starting with Windows application development in C++/MFC and moving to C# and .NET around 2005 and is a .NET Microsoft Certified Professional Developer.
Bob is the author of two books:
Billionaire: How the Ultra-Rich Built Their Fortunes Through Good and Evil and What You Can Learn from Them
and
Wealthonomics: The Most Important Economic and Financial Concepts that Can Make You Rich Fast.
Visit http://www.billionairebook.net for more information.