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.

80 lines
1.8 KiB

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