propertyctrl.h
来自「实现了一个简单的个人事务助理的工具」· C头文件 代码 · 共 73 行
H
73 行
// ExampelDlg.h : Header-Datei
//
#if !defined(AFX_CPROPERTYG_H__3F20C546_869F_11D2_B6F4_0000C0E36C6E__INCLUDED_)
#define AFX_CPROPERTY_H__3F20C546_869F_11D2_B6F4_0000C0E36C6E__INCLUDED_
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
#define ID_NEXT_FIELD 1
#define ID_PREV_FIELD 2
////////////////////////////////////////////////////////////////////////////
// Class to handle the pages
class CPropertyPages : public CObject {
public:
// DLGTEMPLATE m_dlgTemplate; // Templatestructure
// DLGTEMPLATE *m_pResource; // I create my dialogs on the fly
// so I need a pointer to the memory
// HLOCAL m_hLocal; // Memory-Handle
CString m_strTitle;
CDialog *m_pDialogPage; // pointer to the dialog structur
CRect m_Rect; // size of the dialog on the screen
};
////////////////////////////////////////////////////////////////////////////
// Class to handle the TabCtrl
class CSheetTabCtrl : public CTabCtrl
{
// Construction
public:
CSheetTabCtrl();
CRect m_Rect; // Rectangle coordinates
UINT m_nCtrlID; // CTrlID in the dialog
int m_nPages; // number of pages
int m_nActPage; // Actual page
// Array of dialogs
CObArray m_Dialogs;
// Attributes
public:
// Operations
public:
//{{AFX_VIRTUAL(CSheetTabCtrl)
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CSheetTabCtrl();
protected:
int SetActivePage (int nPage);
//{{AFX_MSG(CSheetTabCtrl)
afx_msg void OnSelchange(NMHDR* pNMHDR, LRESULT* pResult);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio f黦t zus鋞zliche Deklarationen unmittelbar vor der vorhergehenden Zeile ein.
#endif // !defined(AFX_CPROPERTY_H__3F20C546_869F_11D2_B6F4_0000C0E36C6E__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?