Jump to content

GBM_QUERYBITMAPINDEX

From EDM2

This message returns the bitmap index of the queried button parameter.

Syntax

param1
     [[USHORT]]  [[usGBState]]   /*  Bitmap state. */

param2
     [[ULONG]]   [[ulReserved]]  /*  Reserved. */

Parameters

usGBState (USHORT)
Bitmap state.
  • GB_UP: Query bitmap used when in the Up state.
  • GB_DOWN: Query bitmap used when in the Down state.
  • GB_HILITE: Query bitmap used when in the highlighted state.
  • GB_DISABLE: Query bitmap used when in the disabled state.
  • GB_ANIMATIONBEGIN: Query bitmap at the beginning of an animation series.
  • GB_ANIMATIONEND: Query bitmap at the end of an animation series.
  • GB_CURRENTSTATE: Query the index of the currently shown bitmap.
  • GB_ERROR: Invalid parameter.
ulReserved (ULONG)
Reserved.

Return Value

rc (USHORT)
Bitmap index of the queried button parameter.

Remarks

If usGBState is not valid, then the index of the currently shown bitmap is returned.