fspropertysheetdlg.cpp

来自「windows ce开发技巧与实例光盘代码」· C++ 代码 · 共 68 行

CPP
68
字号
// FSPropertySheetDlg.cpp : implementation file
//

#include "stdafx.h"
#include "FSPropertySheet.h"
#include "FSPropertySheet1.h"
#include "FSPropertySheetDlg.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CFSPropertySheetDlg dialog

CFSPropertySheetDlg::CFSPropertySheetDlg(CWnd* pParent /*=NULL*/)
	: CDialog(CFSPropertySheetDlg::IDD, pParent)
{
	//{{AFX_DATA_INIT(CFSPropertySheetDlg)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
	// Note that LoadIcon does not require a subsequent DestroyIcon in Win32
	m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME);
}

void CFSPropertySheetDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CFSPropertySheetDlg)
		// NOTE: the ClassWizard will add DDX and DDV calls here
	//}}AFX_DATA_MAP
}

BEGIN_MESSAGE_MAP(CFSPropertySheetDlg, CDialog)
	//{{AFX_MSG_MAP(CFSPropertySheetDlg)
	ON_BN_CLICKED(IDC_PROP_SHEET, OnPropSheet)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CFSPropertySheetDlg message handlers

BOOL CFSPropertySheetDlg::OnInitDialog()
{
	CDialog::OnInitDialog();

	// Set the icon for this dialog.  The framework does this automatically
	//  when the application's main window is not a dialog
	SetIcon(m_hIcon, TRUE);			// Set big icon
	SetIcon(m_hIcon, FALSE);		// Set small icon
	
	CenterWindow(GetDesktopWindow());	// center to the hpc screen

	// TODO: Add extra initialization here
	
	return TRUE;  // return TRUE  unless you set the focus to a control
}



void CFSPropertySheetDlg::OnPropSheet() 
{
	CFSPropertySheet ps(IDS_TITLE);
	ps.DoModal();		
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?