persistdlg.h

来自「最新visualC++编程200例书籍源码包括对数据库的操作」· C头文件 代码 · 共 70 行

H
70
字号
/*  This file was written by Amir Israeli , July 2000   Email: israelaq@walla.co.il  
No warranty of any kind . Dont remove this header . Thanks.
*/
#if !defined(AFX_PERSISTDLG_H__E617EEC0_5B26_11D4_B8C4_9BED3EA9F758__INCLUDED_)
#define AFX_PERSISTDLG_H__E617EEC0_5B26_11D4_B8C4_9BED3EA9F758__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// PersistDlg.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CPersistDlg dialog
#include "RegistrySerialize.h"
#include "ToolTipEx.h"

class CPersistDlg : public CDialog
{
// Construction
public:
	CPersistDlg(CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(CPersistDlg)
	enum { IDD = IDD_SERIALIZE_DIALOG };
	CString	m_strDefault;
	int		m_iAge;
	CString	m_strName;
	CString	m_strPoint;
	CString	m_strRect;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CPersistDlg)
	public:
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CPersistDlg)
	afx_msg void OnInstall();
	afx_msg void OnUninstall();
	afx_msg void OnLoad();
	afx_msg void OnSave();
	virtual BOOL OnInitDialog();
	afx_msg void OnSavemap();
	afx_msg void OnLoadmap();
	afx_msg void OnInfo();
	afx_msg void OnLoadres();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
	
	void PersistObject(BOOL bLoad);//to use in load/save
	CRegistrySerialize  persistObj;
	CToolTipEx  tip;
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_PERSISTDLG_H__E617EEC0_5B26_11D4_B8C4_9BED3EA9F758__INCLUDED_)

⌨️ 快捷键说明

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