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.9 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation 1996-2001.
  5. //
  6. // File: multisz.h
  7. //
  8. // Contents: definition of CDomainRegMultiSZ
  9. // CAttrRegMultiSZ
  10. // CLocalPolRegMultiSZ
  11. // CConfigRegMultiSZ
  12. //
  13. //----------------------------------------------------------------------------
  14. #include "regvldlg.h"
  15. class CDomainRegMultiSZ : public CDomainRegString
  16. {
  17. public:
  18. enum { IDD =IDD_DOMAIN_REGMULTISZ };
  19. CDomainRegMultiSZ() : CDomainRegString(IDD) //Raid #381309, 4/31/2001
  20. {
  21. m_uTemplateResID = IDD;
  22. }
  23. virtual BOOL QueryMultiSZ() { return TRUE; }
  24. protected:
  25. virtual BOOL OnInitDialog ()
  26. {
  27. CDomainRegString::OnInitDialog ();
  28. SendDlgItemMessage (IDC_NAME, EM_LIMITTEXT, 4096);
  29. return TRUE;
  30. }
  31. };
  32. class CAttrRegMultiSZ : public CAttrRegString
  33. {
  34. public:
  35. enum { IDD =IDD_ATTR_REGMULTISZ };
  36. CAttrRegMultiSZ() : CAttrRegString(IDD)
  37. {
  38. m_uTemplateResID = IDD;
  39. }
  40. virtual BOOL QueryMultiSZ() { return TRUE; }
  41. };
  42. class CLocalPolRegMultiSZ : public CLocalPolRegString
  43. {
  44. public:
  45. enum { IDD =IDD_LOCALPOL_REGMULTISZ };
  46. CLocalPolRegMultiSZ() : CLocalPolRegString(IDD)
  47. {
  48. m_uTemplateResID = IDD;
  49. }
  50. virtual BOOL QueryMultiSZ() { return TRUE; }
  51. };
  52. class CConfigRegMultiSZ : public CConfigRegString
  53. {
  54. public:
  55. enum { IDD =IDD_CONFIG_REGMULTISZ };
  56. CConfigRegMultiSZ() : CConfigRegString(IDD)
  57. {
  58. m_uTemplateResID = IDD;
  59. }
  60. virtual BOOL QueryMultiSZ() { return TRUE; }
  61. protected:
  62. virtual BOOL OnInitDialog ()
  63. {
  64. CConfigRegString::OnInitDialog ();
  65. SendDlgItemMessage (IDC_NAME, EM_LIMITTEXT, 4096);
  66. return TRUE;
  67. }
  68. };