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.

78 lines
2.0 KiB

  1. //-----------------------------------------------------------------------------
  2. //
  3. // File: _locenum.h
  4. // Copyright (C) 1994-1997 Microsoft Corporation
  5. // All rights reserved.
  6. //
  7. //
  8. //
  9. //-----------------------------------------------------------------------------
  10. #if !defined(LOCUTIL__locenum_h_INCLUDED)
  11. #define LOCUTIL__locenum_h_INCLUDED
  12. //
  13. // This class is used in UI. SetSel() is used to set the initial
  14. // selection in the combo box
  15. //
  16. class LTAPIENTRY CEnumIntoComboBox: public CEnumCallback
  17. {
  18. public:
  19. CEnumIntoComboBox(CComboBox *pLB=NULL, DWORD val=0, BOOL bAbbrev=FALSE);
  20. void SetSel(DWORD val);
  21. virtual BOOL ProcessEnum(const EnumInfo &);
  22. protected:
  23. CComboBox *m_pLB;
  24. BOOL m_bAbbrev;
  25. DWORD m_dwVal;
  26. };
  27. class LTAPIENTRY CEnumIntoListBox: public CEnumCallback
  28. {
  29. public:
  30. CEnumIntoListBox(CListBox *pLB=NULL,
  31. DWORD val=0, BOOL bAbbrev=FALSE, LPCTSTR lpszPrefix=NULL);
  32. void SetSel(DWORD val);
  33. virtual BOOL ProcessEnum(const EnumInfo &);
  34. protected:
  35. CListBox *m_pLB;
  36. BOOL m_bAbbrev;
  37. DWORD m_dwVal;
  38. LPCTSTR m_lpszPrefix;
  39. };
  40. class LTAPIENTRY CWEnumIntoComboBox: public CWEnumCallback
  41. {
  42. public:
  43. CWEnumIntoComboBox(CComboBox *pLB=NULL, BOOL bForEdit = TRUE, DWORD val=0, BOOL bAbbrev=FALSE);
  44. void SetSel(DWORD val);
  45. virtual BOOL ProcessEnum(const WEnumInfo &);
  46. protected:
  47. CComboBox *m_pLB;
  48. BOOL m_bAbbrev;
  49. DWORD m_dwVal;
  50. BOOL m_bForEdit; // If this flag is true, the strings in the Combo box are displayed in Editing mode
  51. };
  52. class LTAPIENTRY CWEnumIntoListBox: public CWEnumCallback
  53. {
  54. public:
  55. CWEnumIntoListBox(CListBox *pLB=NULL,
  56. BOOL bForEdit = TRUE, DWORD val=0, BOOL bAbbrev=FALSE, LPCTSTR lpszPrefix=NULL);
  57. void SetSel(DWORD val);
  58. virtual BOOL ProcessEnum(const WEnumInfo &);
  59. protected:
  60. CListBox *m_pLB;
  61. BOOL m_bAbbrev;
  62. DWORD m_dwVal;
  63. LPCTSTR m_lpszPrefix;
  64. BOOL m_bForEdit; // If this flag is true, the strings in the Listbox are displayed in Editing mode
  65. };
  66. #endif // LOCUTIL__locenum_h_INCLUDED