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.

115 lines
2.4 KiB

  1. /*****************************************************************/
  2. /** Microsoft Windows NT **/
  3. /** Copyright(c) Microsoft Corp., 1992 **/
  4. /*****************************************************************/
  5. /*
  6. volmgt.hxx
  7. This file contains the classes used by the Volume Management Dialog
  8. viz. part of the server manager.
  9. VOLUME_MANAGEMENT_DIALOG
  10. History:
  11. NarenG 11/11/92 Modified sharemgt.hxx for AFPMGR
  12. */
  13. #ifndef _VOLMGT_HXX_
  14. #define _VOLMGT_HXX_
  15. #include "vvolbase.hxx"
  16. /*************************************************************************
  17. NAME: VOLUME_MANAGEMENT_DIALOG
  18. SYNOPSIS: This is the dialog for managing volumes, this includes
  19. adding a volume, deleting a volume and view volume info.
  20. INTERFACE: VOLUME_MANAGEMENT_DIALOG() - Constructor
  21. PARENT: VIEW_VOLUMES_DIALOG_BASE
  22. USES: PUSH_BUTTON
  23. CAVEATS:
  24. NOTES:
  25. HISTORY:
  26. NarenG 11/11/92 Modified for AFPMGR
  27. **************************************************************************/
  28. class VOLUME_MANAGEMENT_DIALOG: public VIEW_VOLUMES_DIALOG_BASE
  29. {
  30. private:
  31. //
  32. // Push buttons for managing the volumes in the listbox
  33. //
  34. PUSH_BUTTON _pbVolumeDelete;
  35. PUSH_BUTTON _pbVolumeInfo;
  36. PUSH_BUTTON _pbClose;
  37. NLS_STR _nlsServerName;
  38. //
  39. // Represents the target server
  40. //
  41. AFP_SERVER_HANDLE _hServer;
  42. //
  43. // Method to delete a volume.
  44. //
  45. BOOL OnVolumeDelete( VOID );
  46. //
  47. // Method to popup the volume properties dialog
  48. //
  49. BOOL OnVolumeInfo( VOID );
  50. //
  51. // Method to popup the new volume dialog
  52. //
  53. BOOL OnVolumeAdd( VOID );
  54. //
  55. // Refresh the information contained in the dialog
  56. //
  57. DWORD Refresh( VOID );
  58. //
  59. // Enable/Disable buttons according to the information in the listbox
  60. //
  61. VOID ResetControls( VOID );
  62. protected:
  63. virtual BOOL OnCommand( const CONTROL_EVENT & event );
  64. virtual ULONG QueryHelpContext( VOID );
  65. //
  66. // Virtual method called when the user double clicks in the listbox
  67. //
  68. virtual BOOL OnVolumeLbDblClk( VOID );
  69. public:
  70. VOLUME_MANAGEMENT_DIALOG( HWND hwndParent,
  71. AFP_SERVER_HANDLE hServer,
  72. const TCHAR *pszServeName );
  73. };
  74. #endif