id (USHORT)

      Identity of the spin button component window.

    notifycode (USHORT)

      Notification code.

      SPBN_UPARROW

        Tells the application that the Up Arrow was clicked on, or the Up Arrow key was pressed.
      SPBN_DOWNARROW
        Tells the application that the Down Arrow was clicked on, or the Down Arrow key was pressed.
      SPBN_SETFOCUS
        Tells the application which spin field was selected.
      SPBN_KILLFOCUS
        Tells the application when the spin field loses focus.
      SPBN_ENDSPIN
        Tells the application that the user released the select button or one of the arrow keys while spinning a button.
      SPBN_CHANGE
        Tells the application that the contents of the spin field changed.

      hwnd (HWND)

        Window handle.

        The interpretation of this handle is dependent upon the following notification codes:

        • SPBN_UPARROW, SPBN_DOWNARROW, and SPBN_ENDSPIN.

          The param2 parameter is the handle to the currently selected spin field in a particular master-servant setup. If either the Up or Down Arrow is clicked on and none of a spin button's servants are currently selected, the master will return a handle to itself.

        • SPBN_SETFOCUS

          The param2 parameter is the handle of the currently selected spin field.

          This message tells the application which spin field is selected.

        • SPBN_KILLFOCUS

          The param2 parameter is NULLHANDLE if the spin field loses focus or no spin field is currently selected.

          This message tells the application when a spin field loses focus.

          Note: Both SPBN_KILLFOCUS and SPBN_SETFOCUS are set independently. You must check this message only when the application does not specify a master-servant relationship.

          
            SPBN_CHANGE

            The param2 parameter is the handle of the spin button in which the spin field text changed.

          ulReserved (ULONG)

            Reserved value, should be 0.


          [Back] [Next]