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.


        [Back] [Next]