Jump to content

BTNCDATA: Difference between revisions

From EDM2
No edit summary
Ak120 (talk | contribs)
mNo edit summary
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
Button-control-data structure.  
Button-control-data structure.
  typedef structc _BTNCDATA {
  typedef structc _BTNCDATA {
   [[USHORT]]      cb;                // length of control data in bytes
   [[USHORT]]      cb;                // length of control data in bytes
Line 6: Line 6:
   [[LHANDLE]]    hImage;            // resource handle for icon/bitmap
   [[LHANDLE]]    hImage;            // resource handle for icon/bitmap
  } BTNCDATA, *PBTNCDATA;
  } 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.


typedef  BTNCDATA  * PBTNCDATA ;
[[Category:PM Data type]]
[[Category:PM Data type]]

Latest revision as of 00:41, 30 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.