📄 batchmodidlg.h
字号:
//{{AFX_INCLUDES()
#include "msdgridctrl.h"
//}}AFX_INCLUDES
#if !defined(AFX_BATCHMODIDLG_H__4CCBCE07_5C12_11D6_B674_00E04C3A187A__INCLUDED_)
#define AFX_BATCHMODIDLG_H__4CCBCE07_5C12_11D6_B674_00E04C3A187A__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// BatchModiDlg.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CBatchModiDlg dialog
class CBatchModiDlg : public CDialog
{
// Construction
public:
BOOL m_bAllowSave;
CString filename;
int type;
CStringArray m_aMess;
CStringArray m_aId;
CStringArray m_aName;
CBatchModiDlg(CWnd* pParent = NULL); // standard constructor
// 在非绑定方式下,要操作的数据的存在方式是非常自由的,可以是二维数组、几个一维数组或链表等。这里假定表格共有三列,每行数据用一个CStringArray存储,用一个CTypedPtrArray存储指向各行数据的指针。为CMyDialog增加数据成员:
CTypedPtrArray < CPtrArray, CStringArray * > m_aData;
int m_iMaxRow; //当前的行数,在构造函数中初始化为0
// Dialog Data
//{{AFX_DATA(CBatchModiDlg)
enum { IDD = IDD_BATCHMODI };
CComboBox m_combox;
CListBox m_ListBox;
CMsDgridCtrl m_dbgrid;
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CBatchModiDlg)
public:
virtual BOOL DestroyWindow();
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CBatchModiDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSelchangeList1();
afx_msg void OnKillfocusList1();
afx_msg void OnUnboundAddDataDbgrid1(LPDISPATCH RowBuf, VARIANT FAR* NewRowBookmark);
afx_msg void OnButtonClickDbgrid1(short ColIndex);
afx_msg void OnUnboundDeleteRowDbgrid1(VARIANT FAR* Bookmark);
afx_msg void OnUnboundReadDataDbgrid1(LPDISPATCH RowBuf, VARIANT FAR* StartLocation, BOOL ReadPriorRows);
afx_msg void OnUnboundWriteDataDbgrid1(LPDISPATCH RowBuf, VARIANT FAR* WriteLocation);
afx_msg void OnScrollDbgrid1(short FAR* Cancel);
virtual void OnOK();
afx_msg void OnBeforeDeleteDbgrid1(short FAR* Cancel);
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnAfterInsertDbgrid1();
afx_msg void OnSelendokCombo1();
virtual void OnCancel();
afx_msg void OnDownload();
afx_msg void OnLoad();
DECLARE_EVENTSINK_MAP()
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
public:
CString title;
afx_msg void OnBnClickedOk();
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_BATCHMODIDLG_H__4CCBCE07_5C12_11D6_B674_00E04C3A187A__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -