📄 configview.h
字号:
#if !defined(AFX_CONFIGVIEW_H__E9F0DE00_5547_481A_A9B5_FE1AE998250F__INCLUDED_)
#define AFX_CONFIGVIEW_H__E9F0DE00_5547_481A_A9B5_FE1AE998250F__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// ConfigView.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CConfigView form view
#ifndef __AFXEXT_H__
#include <afxext.h>
#endif
class CConfigView : public CFormView
{
protected:
CConfigView(); // protected constructor used by dynamic creation
DECLARE_DYNCREATE(CConfigView)
// Form Data
public:
//{{AFX_DATA(CConfigView)
enum { IDD = IDD_CONFIG_FORM };
CListCtrl m_listInType;
CListCtrl m_listExpType;
CString m_strDBName;
CString m_strExpType;
CString m_strInType;
CString m_strPwd;
CString m_strServer;
CString m_strUser;
//}}AFX_DATA
// Attributes
public:
// CAdoDB m_db;
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CConfigView)
public:
virtual void OnInitialUpdate();
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
private:
//初始化列表控件.
void InitControl();
//初始化列表框控件中的数据
void InitCtrlData();
//向两个列表控件中添加数据,因为收入和支持信息列表控件
//插入列相似,可以共用一个函数.只需要传入一个CListCtrl
//类型的列表控件指针、id、名称值
void InsertTypeItem(CListCtrl* pList, CString id, CString name);
// Implementation
protected:
virtual ~CConfigView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
// Generated message map functions
//{{AFX_MSG(CConfigView)
afx_msg void OnBtnDbcon();
afx_msg void OnBtnInAdd();
afx_msg void OnBtnInMod();
afx_msg void OnBtnInDel();
afx_msg void OnBtnExpAdd();
afx_msg void OnBtnExpMod();
afx_msg void OnBtnExpDel();
afx_msg void OnClickListExp(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnClickListIn(NMHDR* pNMHDR, LRESULT* pResult);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_CONFIGVIEW_H__E9F0DE00_5547_481A_A9B5_FE1AE998250F__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -