Leaked source code of windows server 2003
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.

101 lines
2.1 KiB

  1. //+--------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1994 - 1998.
  5. //
  6. // File: LookForDlg.hxx
  7. //
  8. // Contents: CLookForDlg declaration
  9. //
  10. // Classes: CLookForDlg
  11. //
  12. // History: 02-24-2000 davidmun Created
  13. //
  14. //---------------------------------------------------------------------------
  15. #ifndef __LOOK_FOR_DLG_HXX_
  16. #define __LOOK_FOR_DLG_HXX_
  17. //+--------------------------------------------------------------------------
  18. //
  19. // Class: CLookForDlg
  20. //
  21. // Purpose: Drive the dialog which allows the user to select from the
  22. // set that the caller specified which types of objects to
  23. // look for.
  24. //
  25. // History: 06-22-2000 DavidMun Created
  26. //
  27. //---------------------------------------------------------------------------
  28. class CLookForDlg: public CDlg
  29. {
  30. public:
  31. CLookForDlg(
  32. const CObjectPicker &rop);
  33. ~CLookForDlg();
  34. void
  35. DoModalDlg(
  36. HWND hwndParent,
  37. ULONG flSelected)
  38. {
  39. m_flSelected = flSelected;
  40. _DoModalDlg(hwndParent, IDD_LOOK_FOR);
  41. }
  42. ULONG
  43. GetSelectedFlags() const
  44. {
  45. return m_flSelected;
  46. }
  47. private:
  48. virtual HRESULT
  49. _OnInit(
  50. BOOL *pfSetFocus);
  51. virtual BOOL
  52. _OnNotify(
  53. WPARAM wParam,
  54. LPARAM lParam);
  55. virtual BOOL
  56. _OnCommand(
  57. WPARAM wParam,
  58. LPARAM lParam);
  59. virtual void
  60. _OnHelp(
  61. UINT message,
  62. WPARAM wParam,
  63. LPARAM lParam);
  64. virtual void
  65. _OnSysColorChange()
  66. {
  67. SendDlgItemMessage(m_hwnd, IDC_LOOK_FOR_LV, WM_SYSCOLORCHANGE, 0, 0);
  68. }
  69. BOOL
  70. _IsSomethingSelected() const;
  71. void
  72. _UpdateSelectedFlags();
  73. void
  74. _AddClassToLv(
  75. ULONG flResultantFilterFlags,
  76. ULONG flMustBeSet,
  77. ULONG ids,
  78. int iImage);
  79. const CObjectPicker &m_rop;
  80. const CScopeManager &m_rsm;
  81. ULONG m_flSelected;
  82. };
  83. #endif // __LOOK_FOR_DLG_HXX_