📄 serverview.h
字号:
// ServerView.h : interface of the CServerView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_SERVERVIEW_H__50159E6B_C7FB_479D_96BE_0AA5621BBB83__INCLUDED_)
#define AFX_SERVERVIEW_H__50159E6B_C7FB_479D_96BE_0AA5621BBB83__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CServerView : public CEditView
{
protected: // create from serialization only
CServerView();
DECLARE_DYNCREATE(CServerView)
// Attributes
public:
CServerDoc* GetDocument();
_ConnectionPtr m_connection;
_RecordsetPtr m_recordset;
_CommandPtr m_command;
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CServerView)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
virtual void OnInitialUpdate();
protected:
virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
//}}AFX_VIRTUAL
// Implementation
public:
int m_iRefresh;
CString m_strSource;
BOOL m_fConnected;
void DisplayStringWithCRLF(LPCTSTR lpszMessage);
void DisplayString(LPCTSTR lpszMessage);
virtual ~CServerView();
BOOL GetInfoArray(CString strTableName, CUIntArray &uaID, CStringArray &saArray, int i);
///Ado
// BOOL GetInfoArray(CString strTableName, CUIntArray &uaID, CStringArray &saArray,int i);
BOOL InsertRow(CString strTableName, CStringArray &saValues);
BOOL UpDateRow(CString strTableName, CStringArray &saValues);
BOOL ConstructVar(CString strValue, int type, VARIANT *var);
BOOL RefreshData(ULONG ulColCount,CString strResult[100][200]);
BOOL RefreshData(ULONG ulColCount,CStringArray strResult[100]);
BOOL GetColumn(ULONG *pulColCount,CString strColmnName[100]);
BOOL DeleteRow(CString strSelect);
CString VariantToCtring(VARIANT var);
BOOL OpenCurRecordset(CString strTableName);
////
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CServerView)
afx_msg void OnTimer(UINT nIDEvent);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in ServerView.cpp
inline CServerDoc* CServerView::GetDocument()
{ return (CServerDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_SERVERVIEW_H__50159E6B_C7FB_479D_96BE_0AA5621BBB83__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -