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.

74 lines
2.2 KiB

  1. /*++
  2. Module Name:
  3. AddToDfs.cpp
  4. Abstract:
  5. This module contains the declaration of the CAddToDfs.
  6. This class displays the Add To Dfs Dialog,which is used to add new Junctions Points.
  7. */
  8. #ifndef __ADDTODFS_H_
  9. #define __ADDTODFS_H_
  10. #include "resource.h" // main symbols
  11. /////////////////////////////////////////////////////////////////////////////
  12. // CAddToDfs
  13. class CAddToDfs :
  14. public CDialogImpl<CAddToDfs>
  15. {
  16. public:
  17. CAddToDfs();
  18. ~CAddToDfs();
  19. enum { IDD = IDD_ADDTODFS };
  20. BEGIN_MSG_MAP(CAddToDfs)
  21. MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog)
  22. MESSAGE_HANDLER(WM_HELP, OnCtxHelp)
  23. MESSAGE_HANDLER(WM_CONTEXTMENU, OnCtxMenuHelp)
  24. COMMAND_ID_HANDLER(IDOK, OnOK)
  25. COMMAND_ID_HANDLER(IDCANCEL, OnCancel)
  26. COMMAND_ID_HANDLER(IDC_BUTTONNETBROWSE, OnNetBrowse)
  27. COMMAND_HANDLER(IDC_EDITCHLDNODE, EN_CHANGE, OnChangeDfsLink)
  28. END_MSG_MAP()
  29. // Message Handlers.
  30. LRESULT OnInitDialog(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
  31. LRESULT OnCtxHelp(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
  32. LRESULT OnCtxMenuHelp(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
  33. LRESULT OnOK(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
  34. LRESULT OnCancel(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
  35. LRESULT OnNetBrowse(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
  36. LRESULT OnChangeDfsLink(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
  37. public:
  38. // Clients Call this methods.
  39. // Sets the entry path of the parent. This should be called before calling DoModal.
  40. HRESULT put_ParentPath(BSTR i_bstrParent);
  41. // Methods to retrieve data from the dialog on EndDialog().
  42. HRESULT get_Comment(BSTR *o_bstrComment);
  43. HRESULT get_EntryPath(BSTR *o_bstrEntryPath);
  44. HRESULT get_JPName(BSTR *o_bstrJPName);
  45. HRESULT get_NetPath(BSTR *o_bstrNetPath);
  46. HRESULT get_Server(BSTR *o_bstrServer);
  47. HRESULT get_Share(BSTR *o_bstrShare);
  48. HRESULT get_Time(long *o_plTime);
  49. protected:
  50. CComBSTR m_BrowseDfsLabel;
  51. CComBSTR m_BrowseNetLabel;
  52. CComBSTR m_bstrParentPath;
  53. CComBSTR m_bstrEntryPath;
  54. CComBSTR m_bstrJPName;
  55. CComBSTR m_bstrNetPath;
  56. CComBSTR m_bstrServer;
  57. CComBSTR m_bstrShare;
  58. CComBSTR m_bstrComment;
  59. long m_lTime;
  60. };
  61. #endif //__ADDTODFS_H_