?? paramodeformview.h
字號(hào):
//{{AFX_INCLUDES()
#include "msdgridctrl.h"
//}}AFX_INCLUDES
#if !defined(AFX_PARAMODEFORMVIEW_H__1D5B3D95_1A1E_4282_B5FA_A7D14E95E51A__INCLUDED_)
#define AFX_PARAMODEFORMVIEW_H__1D5B3D95_1A1E_4282_B5FA_A7D14E95E51A__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// ParaModeFormView.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CParaModeFormView form view
#ifndef __AFXEXT_H__
#include <afxext.h>
#endif
#include "visualfx.h"
class CParaModeFormView : public TVisualFormView
{
public:
BOOL m_bAllowSave;
CString filename;
int type;
CStringArray m_aMess;
CStringArray m_aId;
CStringArray m_aName;
// 在非綁定方式下,要操作的數(shù)據(jù)的存在方式是非常自由的,可以是二維數(shù)組、幾個(gè)一維數(shù)組或鏈表等。這里假定表格共有三列,每行數(shù)據(jù)用一個(gè)CStringArray存儲(chǔ),用一個(gè)CTypedPtrArray存儲(chǔ)指向各行數(shù)據(jù)的指針。為CMyDialog增加數(shù)據(jù)成員:
CTypedPtrArray < CPtrArray, CStringArray * > m_aData;
int m_iMaxRow; //當(dāng)前的行數(shù),在構(gòu)造函數(shù)中初始化為0
protected:
CParaModeFormView(); // protected constructor used by dynamic creation
DECLARE_DYNCREATE(CParaModeFormView)
// Form Data
public:
//{{AFX_DATA(CParaModeFormView)
enum { IDD = IDD_PARAMODI };
CListBox m_ListBox;
CMsDgridCtrl m_dbgrid;
//}}AFX_DATA
// Attributes
public:
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CParaModeFormView)
public:
virtual void OnInitialUpdate();
virtual BOOL PreTranslateMessage(MSG* pMsg);
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
virtual ~CParaModeFormView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
// Generated message map functions
//{{AFX_MSG(CParaModeFormView)
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);
afx_msg void OnSelchangeList1();
afx_msg void OnKillfocusList1();
afx_msg void OnDestroy();
afx_msg void OnSave();
afx_msg void OnSize(UINT nType, int cx, int cy);
virtual void OnCancel();
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_PARAMODEFORMVIEW_H__1D5B3D95_1A1E_4282_B5FA_A7D14E95E51A__INCLUDED_)
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -