Jump to content

BTNCDATA: Difference between revisions

From EDM2
No edit summary
No edit summary
Line 8: Line 8:


  typedef  BTNCDATA  * PBTNCDATA ;
  typedef  BTNCDATA  * PBTNCDATA ;
==Fields==
;cb (USHORT)
:Length of the control data in bytes.
:This is the length of the control data for a button control.
;fsCheckState (USHORT)
:Check state of button.
:This is the same value as returned by the BM_QUERYCHECK message and passed to the BM_SETCHECK message.
;fsHiliteState (USHORT)
:Highlighting state of button.
:This is the same value as returned by the BM_QUERYHILITE message and passed to the BM_SETHILITE message.
;hImage (LHANDLE)
:Resource handle for icon or bit map.
[[Category:PM Data type]]
[[Category:PM Data type]]

Revision as of 18:50, 25 May 2024

Button-control-data structure.

typedef structc _BTNCDATA {
  USHORT      cb;                // length of control data in bytes
  USHORT      fsCheckState;      // check state of button
  USHORT      fsHilightState;    // highlight state of button
  LHANDLE     hImage;            // resource handle for icon/bitmap
} BTNCDATA, *PBTNCDATA;
typedef   BTNCDATA   * PBTNCDATA ;

Fields

cb (USHORT)
Length of the control data in bytes.
This is the length of the control data for a button control.
fsCheckState (USHORT)
Check state of button.
This is the same value as returned by the BM_QUERYCHECK message and passed to the BM_SETCHECK message.
fsHiliteState (USHORT)
Highlighting state of button.
This is the same value as returned by the BM_QUERYHILITE message and passed to the BM_SETHILITE message.
hImage (LHANDLE)
Resource handle for icon or bit map.