Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

139 lines
3.7 KiB

  1. //Copyright (c) 1998 - 1999 Microsoft Corporation
  2. /*++
  3. Module Name:
  4. LtView.h
  5. Abstract:
  6. This Module define the CLicMgrLeftView class( The view class used for the left pane in
  7. the splitter window.
  8. Author:
  9. Arathi Kundapur (v-akunda) 11-Feb-1998
  10. Revision History:
  11. --*/
  12. #if !defined(AFX_LICMGRLEFTVIEW_H__72451C73_887E_11D1_8AD1_00C04FB6CBB5__INCLUDED_)
  13. #define AFX_LICMGRLEFTVIEW_H__72451C73_887E_11D1_8AD1_00C04FB6CBB5__INCLUDED_
  14. #if _MSC_VER >= 1000
  15. #endif // _MSC_VER >= 1000
  16. #include "lrwizapi.h"
  17. class CLicServer;
  18. class CLicMgrLeftView : public CTreeView
  19. {
  20. protected: // create from serialization only
  21. CLicMgrLeftView();
  22. DECLARE_DYNCREATE(CLicMgrLeftView)
  23. // Attributes
  24. public:
  25. CLicMgrDoc* GetDocument();
  26. // Operations
  27. public:
  28. // Overrides
  29. // ClassWizard generated virtual function overrides
  30. //{{AFX_VIRTUAL(CLicMgrLeftView)
  31. public:
  32. virtual void OnDraw(CDC* pDC); // overridden to draw this view
  33. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  34. protected:
  35. virtual void OnInitialUpdate(); // called first time after construct
  36. virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
  37. virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
  38. virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
  39. //}}AFX_VIRTUAL
  40. // Implementation
  41. public:
  42. void SetSelection(LPARAM lParam,NODETYPE NodeType);
  43. CImageList m_ImageList;
  44. HTREEITEM AddItemToTree(HTREEITEM hParent, CString szText, HTREEITEM hInsAfter, int iImage, LPARAM lParam);
  45. virtual ~CLicMgrLeftView();
  46. void AddServerKeyPacks(CLicServer *pServer);
  47. int AddIconToImageList(int iconID);
  48. void BuildImageList();
  49. void UI_initmenu( CMenu *pMenu , NODETYPE nt );
  50. void OnServerConnect( );
  51. void OnRefreshAllServers( );
  52. void OnRefreshServer( );
  53. void SetRightClickedItem( HTREEITEM ht );
  54. HTREEITEM GetRightClickedItem( )
  55. {
  56. return m_ht;
  57. }
  58. DWORD WizardActionOnServer( WIZACTION wa , PBOOL );
  59. void OnDownloadKeepPack();
  60. void OnRegisterServer();
  61. void OnRepeatLastDownload();
  62. void OnReactivateServer( );
  63. void OnDeactivateServer( );
  64. void OnServerProperties( );
  65. void OnGeneralHelp( );
  66. void SetActiveServer( CLicServer * );
  67. #ifdef _DEBUG
  68. virtual void AssertValid() const;
  69. virtual void Dump(CDumpContext& dc) const;
  70. #endif
  71. private:
  72. HTREEITEM m_ht;
  73. // Generated message map functions
  74. protected:
  75. //{{AFX_MSG(CLicMgrLeftView)
  76. afx_msg LRESULT OnAddServer(WPARAM wParam, LPARAM lParam);
  77. afx_msg LRESULT OnDeleteServer(WPARAM wParam, LPARAM lParam);
  78. afx_msg LRESULT OnUpdateServer(WPARAM wParam, LPARAM lParam);
  79. afx_msg void OnSelchanged(NMHDR* pNMHDR, LRESULT* pResult);
  80. afx_msg void OnProperties();
  81. afx_msg LRESULT OnAddAllServers(WPARAM wParam, LPARAM lParam);
  82. afx_msg void OnItemexpanding(NMHDR* pNMHDR, LRESULT* pResult);
  83. afx_msg void OnAddNewKeyPack();
  84. afx_msg LRESULT OnAddKeyPack(WPARAM wParam, LPARAM lParam);
  85. afx_msg void OnDestroy();
  86. afx_msg void OnKeydown(NMHDR* pNMHDR, LRESULT* pResult);
  87. afx_msg void OnRightClick(NMHDR* pNMHDR, LRESULT* pResult);
  88. afx_msg void OnLeftClick(NMHDR* pNMHDR, LRESULT* pResult);
  89. afx_msg void OnContextMenu(CWnd* pWnd, CPoint pt );
  90. //}}AFX_MSG
  91. DECLARE_MESSAGE_MAP()
  92. };
  93. #ifndef _DEBUG // debug version in LicMgrLeftView.cpp
  94. inline CLicMgrDoc* CLicMgrLeftView::GetDocument()
  95. { return (CLicMgrDoc*)m_pDocument; }
  96. #endif
  97. /////////////////////////////////////////////////////////////////////////////
  98. //{{AFX_INSERT_LOCATION}}
  99. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  100. #endif // !defined(AFX_LICMGRLEFTVIEW_H__72451C73_887E_11D1_8AD1_00C04FB6CBB5__INCLUDED_)