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.

73 lines
2.0 KiB

  1. /**********************************************************************/
  2. /** Microsoft Windows/NT **/
  3. /** Copyright(c) Microsoft Corp., 1991 **/
  4. /**********************************************************************/
  5. /*
  6. bltssnv.hxx
  7. Header file for the SPIN_SLE_NUM_VALID object
  8. FILE HISTORY:
  9. terryk 27-Jun-1991 creation
  10. terryk 11-Nov-1991 change the type from INT to LONG
  11. terryk 22-Mar-1992 change the type from LONG to ULONG
  12. */
  13. #ifndef _BLTSSNV_HXX_
  14. #define _BLTSSNV_HXX_
  15. #include "bltctrl.hxx"
  16. #include "bltedit.hxx"
  17. /**********************************************************************
  18. NAME: SPIN_SLE_NUM_VALID
  19. SYNOPSIS: SPIN ITEM object which handles numerical input
  20. INTERFACE:
  21. SPIN_SLE_NUM_VALID() - constructor
  22. ~SPIN_SLE_NUM_VALID() - destructor
  23. CheckValid() - popup a message box if the value is invalid.
  24. SetFieldName() - set the field name.
  25. PARENT: SPIN_SLE_NUM
  26. HISTORY:
  27. terryk 28-Jun-91 Created
  28. beng 04-Oct-1991 Win32 conversion
  29. **********************************************************************/
  30. DLL_CLASS SPIN_SLE_NUM_VALID: public SPIN_SLE_NUM
  31. {
  32. private:
  33. NLS_STR _nlsFieldName; // Field Name
  34. protected:
  35. virtual BOOL OnEnter( const CONTROL_EVENT & event );
  36. virtual BOOL OnDefocus( const FOCUS_EVENT & event );
  37. virtual BOOL IsValid();
  38. virtual VOID DisplayErrorMsg();
  39. public:
  40. SPIN_SLE_NUM_VALID( OWNER_WINDOW * powin, CID cid,
  41. ULONG nValue=0, ULONG nMin=0,
  42. ULONG dRange=0, BOOL fWrap=TRUE);
  43. SPIN_SLE_NUM_VALID( OWNER_WINDOW * powin, CID cid,
  44. XYPOINT xy, XYDIMENSION dxy,
  45. ULONG flStyle = ES_CENTER | ES_MULTILINE |
  46. WS_TABSTOP | WS_CHILD,
  47. ULONG nValue=0, ULONG nMin=0,
  48. ULONG dRange=0, BOOL fWrap=TRUE );
  49. ~SPIN_SLE_NUM_VALID();
  50. BOOL CheckValid();
  51. APIERR SetFieldName( MSGID nMsgId );
  52. };
  53. #endif // _BLTSSNV_HXX_