Source code of Windows XP (NT5)
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.

96 lines
2.6 KiB

  1. /**********************************************************************/
  2. /** Microsoft Windows/NT **/
  3. /** Copyright(c) Microsoft Corp., 1991 **/
  4. /**********************************************************************/
  5. /*
  6. bltnslt.hxx
  7. This file contains the class declaration for the DEC_SLT class.
  8. The DEC_SLT class is a display object derived from the SLT class.
  9. DEC_SLT adds a new method SetValue() for setting a numerical value
  10. into the SLT.
  11. FILE HISTORY:
  12. KeithMo 28-Jul-1991 Created.
  13. KeithMo 26-Aug-1991 Changes from code review attended by
  14. RustanL and EricCh.
  15. */
  16. #ifndef _BLTNSLT_HXX
  17. #define _BLTNSLT_HXX
  18. /*************************************************************************
  19. NAME: DEC_SLT
  20. SYNOPSIS: Similar to SLT, but can display numbers also.
  21. INTERFACE: DEC_SLT - Class constructor.
  22. ~DEC_SLT - Class destructor.
  23. SetValue - Set number value.
  24. PARENT: SLT
  25. HISTORY:
  26. KeithMo 28-Jul-1991 Created.
  27. KeithMo 26-Aug-1991 Added app-window constructor.
  28. beng 01-Apr-1992 Unicode fix
  29. KeithMo 28-Apr-1992 Renamed to DEC_SLT, added padding parameter.
  30. **************************************************************************/
  31. class DEC_SLT : public SLT
  32. {
  33. private:
  34. UINT _cchDigitPad;
  35. public:
  36. //
  37. // Usual constructor\destructor goodies.
  38. //
  39. DEC_SLT( OWNER_WINDOW * powner,
  40. CID cid,
  41. UINT cchDigitPad = 1 );
  42. DEC_SLT( OWNER_WINDOW * powner,
  43. CID cid,
  44. XYPOINT xy,
  45. XYDIMENSION dxy,
  46. ULONG flStyle,
  47. const TCHAR * pszClassName = CW_CLASS_STATIC,
  48. UINT cchDigitPad = 1 );
  49. ~DEC_SLT();
  50. //
  51. // Unsigned versions.
  52. //
  53. VOID SetValue( ULONG ulValue );
  54. VOID SetValue( UCHAR uchValue ) { SetValue( (ULONG)uchValue ); }
  55. VOID SetValue( USHORT usValue ) { SetValue( (ULONG)usValue ); }
  56. VOID SetValue( UINT uValue ) { SetValue( (ULONG)uValue ); }
  57. //
  58. // Signed versions.
  59. //
  60. VOID SetValue( LONG lValue );
  61. VOID SetValue( CHAR chValue ) { SetValue( (LONG)chValue ); }
  62. VOID SetValue( SHORT sValue ) { SetValue( (LONG)sValue ); }
  63. VOID SetValue( INT nValue ) { SetValue( (LONG)nValue ); }
  64. }; // class DEC_SLT
  65. #endif // _BLTNSLT_HXX