SQLView.h
资源名称:ISQL_src.zip [点击查看]
上传用户:jsxglz
上传日期:2007-01-03
资源大小:117k
文件大小:2k
源码类别:
SQL Server
开发平台:
Visual C++
- // SQLView.h : interface of the CSQLView class
- //
- /////////////////////////////////////////////////////////////////////////////
- #if !defined(AFX_SQLVIEW_H__C1AD240D_D2B0_11D1_AE85_204C4F4F5020__INCLUDED_)
- #define AFX_SQLVIEW_H__C1AD240D_D2B0_11D1_AE85_204C4F4F5020__INCLUDED_
- #if _MSC_VER >= 1000
- #pragma once
- #endif // _MSC_VER >= 1000
- #include "InteractiveSQLDoc.h"
- class CInteractiveSQLCntrItem;
- class CSQLView : public CRichEditView
- {
- protected: // create from serialization only
- CSQLView();
- DECLARE_DYNCREATE(CSQLView)
- // Attributes
- public:
- CInteractiveSQLDoc* GetDocument();
- // Operations
- public:
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CSQLView)
- public:
- virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
- protected:
- virtual void OnInitialUpdate(); // called first time after construct
- virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
- //}}AFX_VIRTUAL
- // Implementation
- public:
- virtual ~CSQLView();
- #ifdef _DEBUG
- virtual void AssertValid() const;
- virtual void Dump(CDumpContext& dc) const;
- #endif
- protected:
- virtual HMENU GetContextMenu(WORD wSelType, LPOLEOBJECT lpOleObj, CHARRANGE* lpChrg);
- // Generated message map functions
- protected:
- CFont m_font;
- //{{AFX_MSG(CSQLView)
- afx_msg void OnDestroy();
- afx_msg void OnSqlExecute();
- afx_msg void OnUpdateViewWrapWord(CCmdUI* pCmdUI);
- afx_msg void OnViewWrapWord();
- afx_msg void OnFilePrint();
- afx_msg void OnUpdateFilePrint(CCmdUI* pCmdUI);
- afx_msg void OnEditClear();
- afx_msg void OnUpdateEditClear(CCmdUI* pCmdUI);
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- #ifndef _DEBUG // debug version in SQLView.cpp
- inline CInteractiveSQLDoc* CSQLView::GetDocument()
- { return (CInteractiveSQLDoc*)m_pDocument; }
- #endif
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_SQLVIEW_H__C1AD240D_D2B0_11D1_AE85_204C4F4F5020__INCLUDED_)