Public Member Functions | Public Attributes

ToolOtherItem Class Reference

Search for all occurrences

Detailed Description

See also:
Class ToolItem, Custom Controls.

Description:
This class is used to add any user defined or standard Windows control to a 3ds Max custom toolbar.
Data Members:
int y;

The vertical justification.

DWORD style;

The control window style.

MCHAR *className;

The class name of the control. For the 3ds Max custom controls you may use one of the following #defines:

SPINNERWINDOWCLASS

ROLLUPWINDOWCLASS

CUSTEDITWINDOWCLASS

CUSTBUTTONWINDOWCLASS

CUSTSTATUSWINDOWCLASS

CUSTTOOLBARWINDOWCLASS

CUSTIMAGEWINDOWCLASS

COLORSWATCHWINDOWCLASS

Or it may be a literal string such as:

"COMBOBOX"

See the Win32 API help under CreateWindow() for a list of the options here.

MCHAR *windowText;

The window text. This is displayed in controls that have text in them.

#include <custcont.h>

Inheritance diagram for ToolOtherItem:
Inheritance graph
[legend]

List of all members.

Public Member Functions

  ToolOtherItem (MCHAR *cls, int w, int h, int id, DWORD_PTR style=WS_CHILD|WS_VISIBLE, int y=CENTER_TOOL_VERTICALLY, MCHAR *wt=NULL, DWORD hID=0, int or=CTB_HORIZ|CTB_FLOAT)

Public Attributes

int  y
DWORD_PTR  style
MCHAR *  className
MCHAR *  windowText

Constructor & Destructor Documentation

ToolOtherItem ( MCHAR *  cls,
int  w,
int  h,
int  id,
DWORD_PTR  style = WS_CHILD|WS_VISIBLE,
int  y = CENTER_TOOL_VERTICALLY,
MCHAR *  wt = NULL,
DWORD  hID = 0,
int  or = CTB_HORIZ|CTB_FLOAT 
) [inline]
Remarks:
Constructor.
Parameters:
MCHAR *cls

The class name of the control. This may be one of the values listed above under data members.

int w

The width of the control.

int h

The height of the control.

int id

The ID of the control.

DWORD_PTR style=WS_CHILD|WS_VISIBLE

The style of the control window.

int y=CENTER_TOOL_VERTICALLY

The vertical justification. This is a y offset from the top of the toolbar in pixels. The default value simply centers the tool vertically.

MCHAR *wt=NULL

The window text.

DWORD hID=0

The help ID. For plug-in developers this id should be set to 0.
                                                                                                          {
            type = CTB_OTHER;
            this->y = y;
            this->w = w;
            this->h = h;
            this->id = id;
            this->helpID = hID;
            this->style = style;
            orient = or;
            className = cls;
            windowText = wt;
            }       

Member Data Documentation

int y
DWORD_PTR style
MCHAR* className
MCHAR* windowText

ToolOtherItem ToolOtherItem ToolOtherItem ToolOtherItem ToolOtherItem ToolOtherItem ToolOtherItem ToolOtherItem ToolOtherItem ToolOtherItem
ToolOtherItem ToolOtherItem ToolOtherItem ToolOtherItem ToolOtherItem ToolOtherItem ToolOtherItem ToolOtherItem ToolOtherItem ToolOtherItem