mysqlmanagerview.h
上传用户:romrleung
上传日期:2022-05-23
资源大小:18897k
文件大小:3k
源码类别:

MySQL数据库

开发平台:

Visual C++

  1. // MySqlManagerView.h : interface of the CMySqlManagerView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_MYSQLMANAGERVIEW_H__826CB2F4_8B6D_11D1_AEC1_00600806E071__INCLUDED_)
  5. #define AFX_MYSQLMANAGERVIEW_H__826CB2F4_8B6D_11D1_AEC1_00600806E071__INCLUDED_
  6. #if _MSC_VER >= 1000
  7. #pragma once
  8. #endif // _MSC_VER >= 1000
  9. #include <afxcview.h>
  10. #include "cresource.h"
  11. class CToolSql;
  12. class CMySqlManagerView : public CTreeView
  13. {
  14. protected: // create from serialization only
  15. CMySqlManagerView();
  16. DECLARE_DYNCREATE(CMySqlManagerView)
  17. // Attributes
  18. public:
  19. CMySqlManagerDoc* GetDocument();
  20. // Operations
  21. public:
  22. // Overrides
  23. // ClassWizard generated virtual function overrides
  24. //{{AFX_VIRTUAL(CMySqlManagerView)
  25. public:
  26. virtual void OnDraw(CDC* pDC);  // overridden to draw this view
  27. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  28. virtual void OnInitialUpdate();
  29. virtual BOOL PreTranslateMessage(MSG* pMsg);
  30. protected:
  31. virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
  32. virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
  33. virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
  34. //}}AFX_VIRTUAL
  35. // Implementation
  36.    CResource*        GetSelectedResource(HTREEITEM* phItemRet=NULL);
  37.    CResourceServer*  GetServerResource(HTREEITEM hItem);
  38.    HTREEITEM   AddResource ( HTREEITEM hParent, CResource* pRes, HTREEITEM hLastItem = TVI_FIRST ) ;
  39.    void        ProcessResultSet ( HTREEITEM hItem, LPVOID result, CResource* pResource );
  40. public:
  41. virtual ~CMySqlManagerView();
  42. #ifdef _DEBUG
  43. virtual void AssertValid() const;
  44. virtual void Dump(CDumpContext& dc) const;
  45. #endif
  46. protected:
  47. CTreeCtrl*    m_pTree;
  48. CImageList*    m_pImages;
  49. CBitmap*       m_pbmBmp;
  50. CToolSql*      m_pTool;
  51. // Generated message map functions
  52. protected:
  53. //{{AFX_MSG(CMySqlManagerView)
  54. afx_msg void OnDblclk(NMHDR* pNMHDR, LRESULT* pResult);
  55. afx_msg void OnSqlToolQuery();
  56. afx_msg void OnRefresh();
  57. afx_msg void OnRegisterServer();
  58.    afx_msg void OnServerProperties();
  59. afx_msg void OnRclick(NMHDR* pNMHDR, LRESULT* pResult);
  60. //}}AFX_MSG
  61. DECLARE_MESSAGE_MAP()
  62. };
  63. #ifndef _DEBUG  // debug version in MySqlManagerView.cpp
  64. inline CMySqlManagerDoc* CMySqlManagerView::GetDocument()
  65.    { return (CMySqlManagerDoc*)m_pDocument; }
  66. #endif
  67. /////////////////////////////////////////////////////////////////////////////
  68. //{{AFX_INSERT_LOCATION}}
  69. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  70. #endif // !defined(AFX_MYSQLMANAGERVIEW_H__826CB2F4_8B6D_11D1_AEC1_00600806E071__INCLUDED_)