Main Page | Modules | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

_NTBITEMINFO Struct Reference
[NewToolBar control]

#include <newtoolbar.h>

Data Fields


Detailed Description

Structure of the new toolbar item info

Definition at line 145 of file newtoolbar.h.


Field Documentation

DWORD add_data
 

Additional data of the item

Definition at line 199 of file newtoolbar.h.

int bmp_cell
 

Index of bitmap cell.

Definition at line 190 of file newtoolbar.h.

DWORD flags
 

Flags of the item. It can be OR'd with the following values:

  • NTBIF_PUSHBUTTON
    The item is a normal push button.
  • NTBIF_CHECKBUTTON
    The item is a normal check button.
  • NTBIF_NEWLINE
    The item is a newline tag.
  • NTBIF_HOTSPOTBUTTON
    The item is a menu button with hotspot.
  • NTBIF_SEPARATOR
    The item is a separator.
  • NTBIF_DISABLED
    The item is disabled.

Definition at line 171 of file newtoolbar.h.

HOTSPOTPROC hotspot_proc
 

Hotpot-clicked callback procedure for menubutton.

Definition at line 193 of file newtoolbar.h.

int id
 

Identifier of the item. When the user clicked the item, this control will send a notification message to the parent window with the notification code to be equal to this identifier.

Definition at line 178 of file newtoolbar.h.

RECT rc_hotspot
 

Rectangle region of hotspot in the cell.

Definition at line 196 of file newtoolbar.h.

char* text
 

Text of the item. This text will be displayed under the bitmap if the control have NTBS_WITHTEXT style.

Definition at line 184 of file newtoolbar.h.

char* tip
 

Tooltip of the item, not used, reserved.

Definition at line 187 of file newtoolbar.h.

DWORD which
 

Which fields are valid when sets/retrives the item information (ignored when add item). It can be OR'd with the following values:

  • MTB_WHICH_FLAGS
    The flags is valid.
  • MTB_WHICH_ID
    The identifier is valid.
  • MTB_WHICH_TEXT
    The text is valid.
  • MTB_WHICH_TIP
    The tip text is valid.
  • MTB_WHICH_CELL
    The bitmap cell index is valid.
  • MTB_WHICH_HOTSPOT
    The hotspot rect is valid.
  • MTB_WHICH_ADDDATA
    The additional data is valid.

Definition at line 159 of file newtoolbar.h.


The documentation for this struct was generated from the following file:
Generated on Mon Jun 26 14:21:35 2006 for MiniGUI V2.0.3 API Reference by  doxygen 1.4.2