porpsheet.h
来自「《Windows CE 应用程序设计》 书上的第六章第二节实例——货币兑换比率查」· C头文件 代码 · 共 82 行
H
82 行
#if !defined(AFX_PORPSHEET_H__63859613_67C5_11D2_8362_0000210056C3__INCLUDED_)
#define AFX_PORPSHEET_H__63859613_67C5_11D2_8362_0000210056C3__INCLUDED_
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
// PorpSheet.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CPorpSheet
#include "page1.h"
#include "page2.h"
#include "page3.h"
class CCurrency_CEDlg;
class CPorpSheet : public CPropertySheet
{
DECLARE_DYNAMIC(CPorpSheet)
// Construction
public:
CPorpSheet(UINT nIDCaption, CWnd* pParentWnd = NULL, UINT iSelectPage = 0);
CPorpSheet(LPCTSTR pszCaption, CWnd* pParentWnd = NULL, UINT iSelectPage = 0);
// Attributes
public:
CPage1 m_page1;
CPage2 m_page2;
CPage3 m_page3;
CCurrency_CEDlg* m_Dlg;
void InitDocument();
CString CPorpSheet::GetInstallDir();
CString CPorpSheet::GetExeDir();
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CPorpSheet)
public:
virtual void OnOK( );
virtual void OnCancel( );
virtual BOOL OnInitDialog();
virtual BOOL DestroyWindow();
virtual BOOL PreTranslateMessage(MSG* pMsg);
virtual BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext = NULL);
virtual int DoModal();
virtual BOOL OnCmdMsg(UINT nID, int nCode, void* pExtra, AFX_CMDHANDLERINFO* pHandlerInfo);
protected:
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
virtual void PreSubclassWindow();
virtual LRESULT DefWindowProc(UINT message, WPARAM wParam, LPARAM lParam);
virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CPorpSheet();
// Generated message map functions
protected:
//{{AFX_MSG(CPorpSheet)
afx_msg void OnDestroy();
afx_msg void OnActivate(UINT nState, CWnd* pWndOther, BOOL bMinimized);
afx_msg void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags);
afx_msg void OnClose();
afx_msg void OnCancelMode();
afx_msg void OnEnable(BOOL bEnable);
afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_PORPSHEET_H__63859613_67C5_11D2_8362_0000210056C3__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?