📄 rscgdlg9.h
字号:
#ifndef _RsCgDlg9_H_
#define _RsCgDlg9_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"
// RsCgDlg9.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CCustomRs6 class
class CCustomRs6 :
public CADORecordBinding
{
BEGIN_ADO_BINDING(CCustomRs6)
ADO_VARIABLE_LENGTH_ENTRY2(1, adVarWChar, m_wszs_no, sizeof(m_wszs_no), ls_noStatus, FALSE)
ADO_VARIABLE_LENGTH_ENTRY2(2, adVarWChar, m_wszcourse_no, sizeof(m_wszcourse_no), lcourse_noStatus, FALSE)
ADO_FIXED_LENGTH_ENTRY(3, adDouble, m_dscore, lscoreStatus, FALSE)
END_ADO_BINDING()
protected:
WCHAR m_wszs_no[7];
ULONG ls_noStatus;
WCHAR m_wszcourse_no[6];
ULONG lcourse_noStatus;
DOUBLE m_dscore;
ULONG lscoreStatus;
};
//
// 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_S_NO 1001
#define IDC_EDIT_S_NO 2001
#define IDC_STATIC_COURSE_NO 1002
#define IDC_EDIT_COURSE_NO 2002
#define IDC_STATIC_SCORE 1003
#define IDC_EDIT_SCORE 2003
/////////////////////////////////////////////////////////////////////////////
// CRsCgDlg6 dialog
class CRsCgDlg6 :
public CDialog,
public CCustomRs6
{
// Construction
public:
CRsCgDlg6(CWnd* pParent = NULL);
~CRsCgDlg6();
BOOL OnInitDialog();
// Dialog Data
//{{AFX_DATA(CRsCgDlg6)
enum { IDD = CG_IDD_RECORDSET6 };
CString m_strDlgs_no;
CString m_strDlgcourse_no;
DOUBLE m_dDlgscore;
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CRsCgDlg6)
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(CRsCgDlg6)
afx_msg void OnBtnMoveFirst();
afx_msg void OnBtnMoveLast();
afx_msg void OnBtnMoveNext();
afx_msg void OnBtnMovePrevious();
afx_msg void OnDelchoinfo();
afx_msg void OnAddchoinfo();
afx_msg void OnSavechoinfo();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
#endif // !_RsCgDlg9_H_
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -