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.

124 lines
3.3 KiB

  1. //Copyright (c) 1998 - 1999 Microsoft Corporation
  2. /*++
  3. Module Name:
  4. LtView.h
  5. Abstract:
  6. This Module defines the CRightList class (The View class used for the
  7. right pane in the splitter window)
  8. Author:
  9. Arathi Kundapur (v-akunda) 11-Feb-1998
  10. Revision History:
  11. --*/
  12. #if !defined(AFX_RIGHTLIST_H__72451C7E_887E_11D1_8AD1_00C04FB6CBB5__INCLUDED_)
  13. #define AFX_RIGHTLIST_H__72451C7E_887E_11D1_8AD1_00C04FB6CBB5__INCLUDED_
  14. #if _MSC_VER >= 1000
  15. #endif // _MSC_VER >= 1000
  16. #include "lrwizapi.h"
  17. enum ITEM_TYPE { LICENSE , LICENSE_PACK };
  18. // CRightList view
  19. class CRightList : public CListView
  20. {
  21. protected:
  22. CRightList(); // protected constructor used by dynamic creation
  23. DECLARE_DYNCREATE(CRightList)
  24. // Attributes
  25. public:
  26. // Operations
  27. public:
  28. HRESULT SetLicenseColumns();
  29. HRESULT SetKeyPackColumns();
  30. HRESULT SetServerColumns();
  31. HRESULT AddKeyPackstoList(CLicServer * pServer, BOOL bRefresh = FALSE);
  32. void AddKeyPack(CListCtrl& ListCtrl, int index, CKeyPack * pKeyPack);
  33. HRESULT AddServerstoList();
  34. void UI_initmenu(
  35. CMenu *pMenu,
  36. NODETYPE nt
  37. );
  38. DWORD WizardActionOnServer( WIZACTION wa , PBOOL pbRefresh );
  39. void OnServerConnect( );
  40. void OnRefreshAllServers( );
  41. void OnRefreshServer( );
  42. void OnDownloadKeepPack();
  43. void OnRegisterServer();
  44. void OnRepeatLastDownload();
  45. void OnReactivateServer( );
  46. void OnDeactivateServer( );
  47. void OnServerProperties( );
  48. void OnGeneralHelp( );
  49. void SetActiveServer( CLicServer *pServer );
  50. //static int CALLBACK CompareFunc(LPARAM lParam1, LPARAM lParam2,
  51. //LPARAM lParamSort);
  52. // Overrides
  53. // ClassWizard generated virtual function overrides
  54. //{{AFX_VIRTUAL(CRightList)
  55. public:
  56. virtual void OnInitialUpdate();
  57. protected:
  58. virtual void OnDraw(CDC* pDC); // overridden to draw this view
  59. //}}AFX_VIRTUAL
  60. // Implementation
  61. protected:
  62. virtual ~CRightList();
  63. #ifdef _DEBUG
  64. virtual void AssertValid() const;
  65. virtual void Dump(CDumpContext& dc) const;
  66. #endif
  67. // Generated message map functions
  68. protected:
  69. CImageList m_ImageListLarge;
  70. CImageList m_ImageListSmall;
  71. //{{AFX_MSG(CRightList)
  72. afx_msg LRESULT OnSelChange(WPARAM wParam, LPARAM lParam);
  73. afx_msg void OnLargeIcons();
  74. afx_msg void OnSmallIcons();
  75. afx_msg void OnList();
  76. afx_msg void OnDetails();
  77. afx_msg void OnProperties();
  78. afx_msg LRESULT OnAddServer(WPARAM wParam, LPARAM lParam);
  79. afx_msg LRESULT OnDeleteServer(WPARAM wParam, LPARAM lParam);
  80. afx_msg LRESULT OnUpdateServer(WPARAM wParam, LPARAM lParam);
  81. afx_msg LRESULT OnAddKeyPack(WPARAM wParam, LPARAM lParam);
  82. afx_msg void OnAddNewKeyPack();
  83. afx_msg void OnDblclk(NMHDR* pNMHDR, LRESULT* pResult);
  84. afx_msg void OnKeydown(NMHDR* pNMHDR, LRESULT* pResult);
  85. afx_msg void OnColumnClick(NMHDR* pNMHDR, LRESULT* pResult);
  86. afx_msg void OnLeftClick( NMHDR* pNMHDR, LRESULT* pResult);
  87. afx_msg void OnContextMenu(CWnd* pWnd, CPoint pt );
  88. //}}AFX_MSG
  89. DECLARE_MESSAGE_MAP()
  90. };
  91. /////////////////////////////////////////////////////////////////////////////
  92. //{{AFX_INSERT_LOCATION}}
  93. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  94. #endif // !defined(AFX_RIGHTLIST_H__72451C7E_887E_11D1_8AD1_00C04FB6CBB5__INCLUDED_)