📄 myodbcsmplview.h
字号:
// MyOdbcSmplView.h : interface of the CMyOdbcSmplView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_MYODBCSMPLVIEW_H__83A46628_B4FA_11D4_9FF2_00E098774581__INCLUDED_)
#define AFX_MYODBCSMPLVIEW_H__83A46628_B4FA_11D4_9FF2_00E098774581__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "afxdb.h"
class CMyOdbcSmplDoc;
class CMyOdbcSmplView : public CFormView
{
protected: // create from serialization only
CMyOdbcSmplView();
DECLARE_DYNCREATE(CMyOdbcSmplView)
public:
//{{AFX_DATA(CMyOdbcSmplView)
enum { IDD = IDD_MYODBCSMPL_FORM };
CListCtrl m_reclist;
CListBox m_list;
CComboBox m_dsn_combo;
CString m_strDsn;
CString m_strCondition;
CString m_strSqlStmt;
CString m_strDB;
//}}AFX_DATA
// Attributes
public:
CMyOdbcSmplDoc* GetDocument();
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMyOdbcSmplView)
public:
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
virtual void OnInitialUpdate(); // called first time after construct
virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnPrint(CDC* pDC, CPrintInfo* pInfo);
//}}AFX_VIRTUAL
// Implementation
public:
BOOL _InitQueryView();
void _ResetDataListControl();
void _QueryWithoutRecs();
void _QueryWithRecs();
CString _GetSQLStmt();
CString _GetSelList();
CString _GetSelTab();
CString _GetSelCon();
CString _GetOdbcDsn();
virtual ~CMyOdbcSmplView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CMyOdbcSmplView)
afx_msg void OnQuery();
afx_msg void OnCloseupDsnCombo();
afx_msg void OnFileConnect();
afx_msg void OnConnect();
afx_msg void OnUpdateViewShowres(CCmdUI* pCmdUI);
afx_msg void OnViewShowres();
afx_msg void OnButton1();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in MyOdbcSmplView.cpp
inline CMyOdbcSmplDoc* CMyOdbcSmplView::GetDocument()
{ return (CMyOdbcSmplDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_MYODBCSMPLVIEW_H__83A46628_B4FA_11D4_9FF2_00E098774581__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -