usValue (USHORT)

      Update/reset value.

      Controls how the spin field is updated.

      SPBQ_UPDATEIFVALID

        Update the contents of the spin field if the value is valid. This is the default.

        Specifying this flag on a query will not update the contents of the spin field if it is exactly the same as an item in the spin button list.

        If an item in the list is Monday, specifying SPBQ_UPDATEIFVALID updates the spin field contents when MONDAY, monday, or mONDAY are typed, but not when Monday is typed. This prevents recursion if the application checks for the validity each time a SPBN_CHANGE message is sent from the component.

      SPBQ_ALWAYSUPDATE
        Update the contents of the spin field if the value is valid. Reset the contents of the spin field to the last valid value if the field contains data that is not valid.

        If the spin button is spinning numbers between an upper and a lower limit, and the content of the spin field is a valid number that is out of range, the spin button does not reset itself to the last valid value. It sets the current position at the upper limit when the out-of-range number specified is above the upper limit. It sets the current position at the lower limit when the out-of-range number is below the lower limit.

        When the current value is changed, the return of the query message is still FALSE.

      SPBQ_DONOTUPDATE
        Do not update the contents of the spin field, even if the value is valid.


      [Back] [Next]