?? rscgdlg6.h
字號:
#ifndef _RsCgDlg6_H_
#define _RsCgDlg6_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"
// RsCgDlg6.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CCustomRs3 class
class CCustomRs3 :
public CADORecordBinding
{
BEGIN_ADO_BINDING(CCustomRs3)
ADO_VARIABLE_LENGTH_ENTRY2(1, adVarWChar, m_wszcourse_no, sizeof(m_wszcourse_no), lcourse_noStatus, FALSE)
ADO_VARIABLE_LENGTH_ENTRY2(2, adVarWChar, m_wszcourse_name, sizeof(m_wszcourse_name), lcourse_nameStatus, FALSE)
ADO_FIXED_LENGTH_ENTRY(3, adDouble, m_dcourse_score, lcourse_scoreStatus, FALSE)
END_ADO_BINDING()
protected:
WCHAR m_wszcourse_no[6];
ULONG lcourse_noStatus;
WCHAR m_wszcourse_name[21];
ULONG lcourse_nameStatus;
DOUBLE m_dcourse_score;
ULONG lcourse_scoreStatus;
};
//
// 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_COURSE_NAME 1002
#define IDC_EDIT_COURSE_NAME 2002
#define IDC_STATIC_COURSE_SCORE 1003
#define IDC_EDIT_COURSE_SCORE 2003
/////////////////////////////////////////////////////////////////////////////
// CRsCgDlg3 dialog
class CRsCgDlg3 :
public CDialog,
public CCustomRs3
{
// Construction
public:
CRsCgDlg3(CWnd* pParent = NULL);
~CRsCgDlg3();
BOOL OnInitDialog();
// Dialog Data
//{{AFX_DATA(CRsCgDlg3)
enum { IDD = CG_IDD_RECORDSET3 };
CString m_strDlgcourse_no;
CString m_strDlgcourse_name;
DOUBLE m_dDlgcourse_score;
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CRsCgDlg3)
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(CRsCgDlg3)
afx_msg void OnBtnMoveFirst();
afx_msg void OnBtnMoveLast();
afx_msg void OnBtnMoveNext();
afx_msg void OnBtnMovePrevious();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
#endif // !_RsCgDlg6_H_
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -