ToolMacroItem Class Reference
 
 
 
ToolMacroItem Class Reference

#include <custcont.h>

Inheritance diagram for ToolMacroItem:
ToolItem MaxHeapOperators

Class Description

See also:
Class ToolItem, Class MacroButtonData, Class ICustButton, Custom Controls.

Description:
This class allows a macro item control to be added to the toolbar.

Data Members:
MacroButtonData md;

Points to the macro button data for this tool item.

Public Member Functions

  ToolMacroItem (int wd, int ht, MacroButtonData *data, int ori=CTB_HORIZ|CTB_VERT|CTB_FLOAT)

Public Attributes

MacroButtonData  md

Constructor & Destructor Documentation

ToolMacroItem ( int  wd,
int  ht,
MacroButtonData data,
int  ori = CTB_HORIZ|CTB_VERT|CTB_FLOAT 
) [inline]
Remarks:
Constructor.
Parameters:
int wd

The width of the item.

int ht

The height of the item.

MacroButtonData *data

Points to the macro button data.

int ori = CTB_HORIZ|CTB_VERT|CTB_FLOAT

Specifies the orientation. One or more of the following values:

CTB_HORIZ

CTB_VERT

CTB_FLOAT
                        { 
                        type = CTB_MACROBUTTON;
                        md = *data; 
                        orient = ori;
                        w = wd; h = ht; id = 0; helpID = 0;
                        }

Member Data Documentation