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.

62 lines
1.9 KiB

  1. /*++
  2. Module Name:
  3. LinkFilt.h
  4. Abstract:
  5. This module contains the declaration of the CFilterDfsLinks.
  6. */
  7. #ifndef __LINKFILT_H_
  8. #define __LINKFILT_H_
  9. #include "resource.h" // main symbols
  10. #include "DfsEnums.h"
  11. /////////////////////////////////////////////////////////////////////////////
  12. // CFilterDfsLinks
  13. class CFilterDfsLinks :
  14. public CDialogImpl<CFilterDfsLinks>
  15. {
  16. public:
  17. CFilterDfsLinks();
  18. ~CFilterDfsLinks();
  19. enum { IDD = IDD_FILTERDFSLINKS };
  20. BEGIN_MSG_MAP(CFilterDfsLinks)
  21. MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog)
  22. MESSAGE_HANDLER(WM_HELP, OnCtxHelp)
  23. MESSAGE_HANDLER(WM_CONTEXTMENU, OnCtxMenuHelp)
  24. COMMAND_ID_HANDLER(IDC_FILTERDFSLINKS_RADIO_NO, OnRadioNo)
  25. COMMAND_ID_HANDLER(IDC_FILTERDFSLINKS_RADIO_YES, OnRadioYes)
  26. COMMAND_ID_HANDLER(IDOK, OnOK)
  27. COMMAND_ID_HANDLER(IDCANCEL, OnCancel)
  28. END_MSG_MAP()
  29. // Command 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 OnRadioNo(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
  34. LRESULT OnRadioYes(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
  35. LRESULT OnOK(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
  36. LRESULT OnCancel(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
  37. // Methods to access data in the dialog.
  38. HRESULT put_EnumFilterType(FILTERDFSLINKS_TYPE i_lLinkFilterType);
  39. HRESULT get_EnumFilterType(FILTERDFSLINKS_TYPE *o_plLinkFilterType);
  40. HRESULT put_EnumFilter(BSTR i_bstrEnumFilter);
  41. HRESULT get_EnumFilter(BSTR *o_pbstrEnumFilter);
  42. HRESULT put_MaxLimit(ULONG i_ulMAxLimit);
  43. HRESULT get_MaxLimit(ULONG *o_pulMAxLimit);
  44. protected:
  45. FILTERDFSLINKS_TYPE m_lLinkFilterType;
  46. CComBSTR m_bstrEnumFilter;
  47. ULONG m_ulMaxLimit;
  48. };
  49. #endif //__LINKFILT_H_