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.

98 lines
2.0 KiB

  1. /*****************************************************************/
  2. /** Microsoft Windows NT **/
  3. /** Copyright(c) Microsoft Corp., 1992 **/
  4. /*****************************************************************/
  5. /*
  6. voledit.hxx
  7. This file contains the classes used by the Volume Edit Dialog
  8. viz. part of the file manager.
  9. VOLUME_EDIT_DIALOG
  10. History:
  11. NarenG 11/11/92 Modified sharemgt.hxx for AFPMGR
  12. */
  13. #ifndef _VOLEDIT_HXX_
  14. #define _VOLEDIT_HXX_
  15. #include "vvolbase.hxx"
  16. /*************************************************************************
  17. NAME: VOLUME_EDIT_DIALOG
  18. SYNOPSIS: This is the dialog for editing volumes.
  19. INTERFACE: VOLUME_EDIT_DIALOG() - Constructor
  20. PARENT: VIEW_VOLUMES_DIALOG_BASE
  21. USES: PUSH_BUTTON
  22. CAVEATS:
  23. NOTES:
  24. HISTORY:
  25. NarenG 11/11/92 Modified for AFPMGR
  26. **************************************************************************/
  27. class VOLUME_EDIT_DIALOG: public VIEW_VOLUMES_DIALOG_BASE
  28. {
  29. private:
  30. SLT _sltVolumeTitle;
  31. //
  32. // Push buttons for the volumes in the listbox
  33. //
  34. PUSH_BUTTON _pbVolumeInfo;
  35. PUSH_BUTTON _pbClose;
  36. //
  37. // Represents the target server
  38. //
  39. AFP_SERVER_HANDLE _hServer;
  40. //
  41. // Method to popup the volume properties dialog
  42. //
  43. BOOL OnVolumeInfo( VOID );
  44. //
  45. // Enable/Disable buttons according to the information in the listbox
  46. //
  47. VOID ResetControls( VOID );
  48. protected:
  49. virtual BOOL OnCommand( const CONTROL_EVENT & event );
  50. virtual ULONG QueryHelpContext( VOID );
  51. //
  52. // Virtual method called when the user double clicks in the listbox
  53. //
  54. virtual BOOL OnVolumeLbDblClk( VOID );
  55. public:
  56. VOLUME_EDIT_DIALOG( HWND hwndParent,
  57. AFP_SERVER_HANDLE hServer,
  58. const TCHAR *pszServerName,
  59. const TCHAR *pszPath,
  60. BOOL fIsFile );
  61. };
  62. #endif