Public Member Functions | Public Attributes

ToolStatusItem Class Reference

Search for all occurrences

Detailed Description

See also:
Class ToolItem, Custom Controls.

Description:
This class allows a status control to be added to the toolbar.
Data Members:
BOOL fixed;

TRUE indicates a fixed width. If it is not fixed, then it will auto size itself horizontally based on the size of the toolbar. For an example of this see the status bar in the track view.

#include <custcont.h>

Inheritance diagram for ToolStatusItem:
Inheritance graph
[legend]

List of all members.

Public Member Functions

  ToolStatusItem (int w, int h, BOOL f, int id, DWORD hID=0, int or=CTB_HORIZ|CTB_FLOAT)

Public Attributes

BOOL  fixed

Constructor & Destructor Documentation

ToolStatusItem ( int  w,
int  h,
BOOL  f,
int  id,
DWORD  hID = 0,
int  or = CTB_HORIZ|CTB_FLOAT 
) [inline]
Remarks:
Constructor.
Parameters:
int w

The width of the status box.

int h

The height of the status box.

BOOL f

The fixed data member - see above.

int id

The ID of the control.

DWORD hID=0

The help ID of the control. For plug-in developers this id should be set to 0.
                                                                                              {
            type = CTB_STATUS;
            this->w = w;
            this->h = h;
            this->id = id;
            this->helpID = hID;
            fixed = f;
            orient = or;
            }

Member Data Documentation

BOOL fixed

ToolStatusItem ToolStatusItem ToolStatusItem ToolStatusItem ToolStatusItem ToolStatusItem ToolStatusItem ToolStatusItem ToolStatusItem ToolStatusItem
ToolStatusItem ToolStatusItem ToolStatusItem ToolStatusItem ToolStatusItem ToolStatusItem ToolStatusItem ToolStatusItem ToolStatusItem ToolStatusItem