📄 rscgdlg7.h
字号:
#ifndef _RsCgDlg7_H_
#define _RsCgDlg7_H_
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
#include "resource.h"
// CG : In order to use this code against a different version of ADO, the appropriate
// ADO library needs to be used in the #import statement
#import "C:\Program Files\Common Files\system\ado\msado15.dll" rename_namespace("ADOCG") rename("EOF", "EndOfFile")
using namespace ADOCG;
#include "icrsint.h"
// RsCgDlg7.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CCustomRs4 class
class CCustomRs4 :
public CADORecordBinding
{
BEGIN_ADO_BINDING(CCustomRs4)
ADO_VARIABLE_LENGTH_ENTRY2(1, adVarWChar, m_wszcourse_no, sizeof(m_wszcourse_no), lcourse_noStatus, FALSE)
ADO_VARIABLE_LENGTH_ENTRY2(2, adVarWChar, m_wszt_no, sizeof(m_wszt_no), lt_noStatus, FALSE)
END_ADO_BINDING()
protected:
WCHAR m_wszcourse_no[6];
ULONG lcourse_noStatus;
WCHAR m_wszt_no[7];
ULONG lt_noStatus;
};
//
// TODO : These definitions should be moved to the resource header.
//
#define ID_BTN_MOVEPREVIOUS 201
#define ID_BTN_MOVENEXT 202
#define ID_BTN_MOVELAST 203
#define ID_BTN_MOVEFIRST 204
#define IDC_STATIC_COURSE_NO 1001
#define IDC_EDIT_COURSE_NO 2001
#define IDC_STATIC_T_NO 1002
#define IDC_EDIT_T_NO 2002
/////////////////////////////////////////////////////////////////////////////
// CRsCgDlg4 dialog
class CRsCgDlg4 :
public CDialog,
public CCustomRs4
{
// Construction
public:
CRsCgDlg4(CWnd* pParent = NULL);
~CRsCgDlg4();
BOOL OnInitDialog();
// Dialog Data
//{{AFX_DATA(CRsCgDlg4)
enum { IDD = CG_IDD_RECORDSET4 };
CString m_strDlgcourse_no;
CString m_strDlgt_no;
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CRsCgDlg4)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
void RefreshBoundData();
void GenerateError(HRESULT hr, PWSTR pwszDescription);
_RecordsetPtr m_pRs;
CString m_strConnection;
CString m_strCmdText;
// Generated message map functions
//{{AFX_MSG(CRsCgDlg4)
afx_msg void OnBtnMoveFirst();
afx_msg void OnBtnMoveLast();
afx_msg void OnBtnMoveNext();
afx_msg void OnBtnMovePrevious();
afx_msg void OnDelteachinginfo();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
#endif // !_RsCgDlg7_H_
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -