Jump to content

GBM_SETSTATE

From EDM2

This message sets the state of a two-state graphic button.

Syntax

param1
     [[USHORT]]  [[usStateCode]] /*  State code. */

param2
     [[USHORT]]  [[usRePaint]]   /*  Indicates when change of state will occur. */

Parameters

usStateCode (USHORT)
State code.
  • GB_UP: Sets the graphic button to the Up state.
  • GB_DOWN: Sets the graphic button to the Down state.
  • GB_TOGGLE: Toggles the graphic buttons state from Up to Down or from Down to Up.
usRePaint (USHORT)
Indicates when change of state will occur.
  • TRUE: The change in state is reflected immediately onscreen.
  • FALSE: The change in state is not reflected immediately onscreen. The graphic button displays the change the next time it receives a BN_PAINT message.

Return Value

rc (ULONG)
Return codes indicating success or failure.
  • TRUE: Success.
  • FALSE: Failure or not recognized.