📄 mydialog.h
字号:
//{{AFX_INCLUDES()
#include "msdgridctrl.h"
//}}AFX_INCLUDES
#if !defined(AFX_MYDIALOG_H__8928FB00_6250_463E_B13A_144A29DF26AE__INCLUDED_)
#define AFX_MYDIALOG_H__8928FB00_6250_463E_B13A_144A29DF26AE__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// MyDialog.h : header file
//
#include <afxtempl.h>
/////////////////////////////////////////////////////////////////////////////
// CMyDialog dialog
class CMyDialog : public CDialog
{
// Construction
public:
CMyDialog(CWnd* pParent = NULL); // standard constructor
CTypedPtrArray < CPtrArray, CStringArray * > m_aData;
int m_iMaxRow; //当前的行数,在构造函数中初始化为0
// Dialog Data
//{{AFX_DATA(CMyDialog)
enum { IDD = IDD_DIALOG1 };
CListBox m_ListBox;
CMsDgridCtrl m_DBGrid;
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMyDialog)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CMyDialog)
virtual void OnOK();
virtual BOOL OnInitDialog();
afx_msg void OnSelchangeList1();
afx_msg void OnKillfocusList1();
afx_msg void OnUnboundReadDataDbgrid1(LPDISPATCH RowBuf, VARIANT FAR* StartLocation, BOOL ReadPriorRows);
afx_msg void OnUnboundWriteDataDbgrid1(LPDISPATCH RowBuf, VARIANT FAR* WriteLocation);
afx_msg void OnUnboundAddDataDbgrid1(LPDISPATCH RowBuf, VARIANT FAR* NewRowBookmark);
afx_msg void OnUnboundDeleteRowDbgrid1(VARIANT FAR* Bookmark);
afx_msg void OnButtonClickDbgrid1(short ColIndex);
afx_msg void OnScrollDbgrid1(short FAR* Cancel);
DECLARE_EVENTSINK_MAP()
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_MYDIALOG_H__8928FB00_6250_463E_B13A_144A29DF26AE__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -