CntrItem.h
上传用户:jsxglz
上传日期:2007-01-03
资源大小:117k
文件大小:2k
源码类别:

SQL Server

开发平台:

Visual C++

  1. // CntrItem.h : interface of the CInteractiveSQLCntrItem class
  2. //
  3. #if !defined(AFX_CNTRITEM_H__C1AD2410_D2B0_11D1_AE85_204C4F4F5020__INCLUDED_)
  4. #define AFX_CNTRITEM_H__C1AD2410_D2B0_11D1_AE85_204C4F4F5020__INCLUDED_
  5. #if _MSC_VER >= 1000
  6. #pragma once
  7. #endif // _MSC_VER >= 1000
  8. class CInteractiveSQLDoc;
  9. class CSQLView;
  10. class CInteractiveSQLCntrItem : public CRichEditCntrItem
  11. {
  12. DECLARE_SERIAL(CInteractiveSQLCntrItem)
  13. // Constructors
  14. public:
  15. CInteractiveSQLCntrItem(REOBJECT* preo = NULL, CInteractiveSQLDoc* pContainer = NULL);
  16. // Note: pContainer is allowed to be NULL to enable IMPLEMENT_SERIALIZE.
  17. //  IMPLEMENT_SERIALIZE requires the class have a constructor with
  18. //  zero arguments.  Normally, OLE items are constructed with a
  19. //  non-NULL document pointer.
  20. // Attributes
  21. public:
  22. CInteractiveSQLDoc* GetDocument()
  23. { return (CInteractiveSQLDoc*)CRichEditCntrItem::GetDocument(); }
  24. CSQLView* GetActiveView()
  25. { return (CSQLView*)CRichEditCntrItem::GetActiveView(); }
  26. // ClassWizard generated virtual function overrides
  27. //{{AFX_VIRTUAL(CInteractiveSQLCntrItem)
  28. public:
  29. protected:
  30. //}}AFX_VIRTUAL
  31. // Implementation
  32. public:
  33. ~CInteractiveSQLCntrItem();
  34. #ifdef _DEBUG
  35. virtual void AssertValid() const;
  36. virtual void Dump(CDumpContext& dc) const;
  37. #endif
  38. };
  39. /////////////////////////////////////////////////////////////////////////////
  40. //{{AFX_INSERT_LOCATION}}
  41. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  42. #endif // !defined(AFX_CNTRITEM_H__C1AD2410_D2B0_11D1_AE85_204C4F4F5020__INCLUDED_)