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.

87 lines
2.4 KiB

  1. /*****************************************************************/
  2. /** Microsoft Windows NT **/
  3. /** Copyright(c) Microsoft Corp., 1992 **/
  4. /*****************************************************************/
  5. /*
  6. * sharemgt.hxx
  7. * This file contains the classes used by the Share Management Dialog
  8. *
  9. * SHARE_MANAGEMENT_DIALOG
  10. *
  11. * History:
  12. * Yi-HsinS 1/6/92 Created
  13. * Yi-HsinS 3/12/92 Added MakeButtonCloseDefault()
  14. * Yi-HsinS 4/2/92 Added MayRun
  15. *
  16. */
  17. #ifndef _SHAREMGT_HXX_
  18. #define _SHAREMGT_HXX_
  19. #include "sharestp.hxx"
  20. #include "sharecrt.hxx"
  21. /*************************************************************************
  22. NAME: SHARE_MANAGEMENT_DIALOG
  23. SYNOPSIS: This is the dialog for managing shares, this includes
  24. adding a share, deleting a share and view share info.
  25. INTERFACE: SHARE_MANAGEMENT_DIALOG() - Constructor
  26. PARENT: VIEW_SHARE_DIALOG_BASE
  27. USES: PUSH_BUTTON, STOP_SHARING_GROUP
  28. CAVEATS:
  29. NOTES:
  30. HISTORY:
  31. Yi-HsinS 1/6/92 Created
  32. **************************************************************************/
  33. class SHARE_MANAGEMENT_DIALOG: public VIEW_SHARE_DIALOG_BASE
  34. {
  35. private:
  36. // Push buttons for managing the shares in the listbox
  37. PUSH_BUTTON _buttonStopSharing;
  38. PUSH_BUTTON _buttonShareInfo;
  39. PUSH_BUTTON _buttonClose;
  40. // Helper method to stop sharing a sharename
  41. APIERR OnStopSharing( VOID );
  42. // Helper method to popup the share properties dialog
  43. APIERR OnShareInfo( VOID );
  44. // Helper method to popup the new share dialog
  45. APIERR OnAddShare( VOID );
  46. // Initialize all information in the dialog
  47. APIERR Init( const TCHAR *pszComputer );
  48. // Refresh the information contained in the dialog
  49. APIERR Refresh( VOID );
  50. // Enable/Disable buttons according to the information in the listbox
  51. VOID ResetControls( VOID );
  52. protected:
  53. virtual BOOL OnCommand( const CONTROL_EVENT & event );
  54. virtual ULONG QueryHelpContext( VOID );
  55. // Virtual method called when the user double clicks in the listbox
  56. virtual BOOL OnShareLbDblClk( VOID );
  57. public:
  58. SHARE_MANAGEMENT_DIALOG( HWND hwndParent,
  59. const TCHAR *pszComputer,
  60. ULONG ulHelpContextBase );
  61. };
  62. #endif