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.

89 lines
2.9 KiB

  1. /////////////////////////////////////////////////////////////////////////////
  2. // Copyright (C) 1993-1996 Microsoft Corporation. All Rights Reserved.
  3. //
  4. // MODULE: PickGrp.h
  5. //
  6. // PURPOSE: Contains id's and prototypes for the pick group dialog.
  7. //
  8. #ifndef __PICKGRP_H__
  9. #define __PICKGRP_H__
  10. #include <grplist2.h>
  11. #define c_cchLineMax 1000
  12. #define idtFindDelay 1
  13. #define dtFindDelay 600
  14. class CPickGroupDlg : public IGroupListAdvise
  15. {
  16. public:
  17. /////////////////////////////////////////////////////////////////////////
  18. // Initialization
  19. CPickGroupDlg();
  20. ~CPickGroupDlg();
  21. // IUnknown
  22. HRESULT STDMETHODCALLTYPE QueryInterface(REFIID riid, void **ppvObject);
  23. ULONG STDMETHODCALLTYPE AddRef(void);
  24. ULONG STDMETHODCALLTYPE Release(void);
  25. // IGroupListAdvise
  26. HRESULT STDMETHODCALLTYPE ItemUpdate(void);
  27. HRESULT STDMETHODCALLTYPE ItemActivate(FOLDERID id);
  28. BOOL FCreate(HWND hwndOwner, FOLDERID idServer, LPSTR *ppszGroups, BOOL fPoster);
  29. static INT_PTR CALLBACK PickGrpDlgProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam);
  30. private:
  31. /////////////////////////////////////////////////////////////////////////
  32. // Message Handlers
  33. BOOL _OnInitDialog(HWND hwnd);
  34. BOOL _OnFilter(HWND hwnd);
  35. void _OnChangeServers(HWND hwnd);
  36. void _OnCommand(HWND hwnd, int id, HWND hwndCtl, UINT codeNotify);
  37. LRESULT _OnNotify(HWND hwnd, int idFrom, LPNMHDR pnmhdr);
  38. void _OnClose(HWND hwnd);
  39. void _OnPaint(HWND hwnd);
  40. void _OnTimer(HWND hwnd, UINT id);
  41. /////////////////////////////////////////////////////////////////////////
  42. // Utility functions
  43. void _UpdateStateUI(HWND hwnd);
  44. BOOL _OnOK(HWND hwnd);
  45. void _AddGroup(void);
  46. void _InsertList(FOLDERID id);
  47. void _RemoveGroup(void);
  48. /////////////////////////////////////////////////////////////////////////
  49. // Class Data
  50. ULONG m_cRef;
  51. LPSTR *m_ppszGroups;
  52. HWND m_hwnd;
  53. HWND m_hwndPostTo;
  54. BOOL m_fPoster;
  55. HICON m_hIcon;
  56. CGroupList *m_pGrpList;
  57. LPCSTR m_pszAcct;
  58. FOLDERID m_idAcct;
  59. };
  60. /////////////////////////////////////////////////////////////////////////////
  61. // Dialog Control ID's
  62. //
  63. #define idcAddGroup 1004
  64. #define idcSelectedGroups 1005
  65. #define idcRemoveGroup 1006
  66. #define idcPostTo 1007
  67. #define idcEmailAuthor 1008
  68. #define idcGroupList 2001 // Group list listview
  69. #define idcFindText 2002 // Find query edit box
  70. #define idcShowFavorites 2003 // Filter favorites toggle
  71. #endif