3ds Max C++ API Reference
Loading...
Searching...
No Matches
ToolOtherItem Class Reference

#include <custcont.h>

+ Inheritance diagram for ToolOtherItem:

Public Member Functions

 ToolOtherItem (const MCHAR *cls, int w, int h, int id, DWORD_PTR style=WS_CHILD|WS_VISIBLE, int y=CENTER_TOOL_VERTICALLY, const MCHAR *wt=nullptr, DWORD hID=0, int ori=CTB_HORIZ|CTB_FLOAT)
 
- Public Member Functions inherited from ToolItem
virtual ~ToolItem ()
 

Public Attributes

int y = 0
 
DWORD_PTR style = 0
 
const MCHARclassName = nullptr
 
const MCHARwindowText = nullptr
 
- Public Attributes inherited from ToolItem
ToolItemType type
 
int id = 0
 
DWORD helpID = 0
 
int w = 0
 
int h = 0
 
int orient = 0
 

Additional Inherited Members

- Static Public Member Functions inherited from MaxHeapOperators
static UtilExport voidoperator new (size_t size)
 Standard new operator used to allocate objects If there is insufficient memory, an exception will be thrown.
 
static UtilExport voidoperator new (size_t size, const std::nothrow_t &e)
 Standard new operator used to allocate objects if there is insufficient memory, NULL will be returned.
 
static UtilExport voidoperator new (size_t size, const char *filename, int line)
 New operator used to allocate objects that takes the filename and line number where the new was called If there is insufficient memory, an exception will be thrown.
 
static UtilExport voidoperator new (size_t size, int block_type, const char *filename, int line)
 New operator used to allocate objects that takes the type of memory, filename and line number where the new was called If there is insufficient memory, an exception will be thrown.
 
static UtilExport voidoperator new (size_t size, const std::nothrow_t &e, const char *filename, int line)
 New operator used to allocate objects that takes the filename and line number where the new was called If there is insufficient memory, NULL will be returned.
 
static UtilExport voidoperator new (size_t size, unsigned long flags)
 New operator used to allocate objects that takes extra flags to specify special operations If there is insufficient memory, an exception will be thrown.
 
static UtilExport voidoperator new (size_t size, const std::nothrow_t &e, unsigned long flags)
 New operator used to allocate objects that takes extra flags to specify special operations If there is insufficient memory, NULL will be returned.
 
static UtilExport voidoperator new[] (size_t size)
 New operator used to allocate arrays of objects If there is insufficient memory, an exception will be thrown.
 
static UtilExport voidoperator new[] (size_t size, const std::nothrow_t &e)
 New operator used to allocate arrays of objects If there is insufficient memory, NULL will be returned.
 
static UtilExport voidoperator new[] (size_t size, const char *filename, int line)
 New operator used to allocate arrays of objects If there is insufficient memory, an exception will be thrown.
 
static UtilExport voidoperator new[] (size_t size, int block_type, const char *filename, int line)
 New operator used to allocate arrays of objects.
 
static UtilExport voidoperator new[] (size_t size, const std::nothrow_t &e, const char *filename, int line)
 New operator used to allocate arrays of objects If there is insufficient memory, NULL will be returned.
 
static UtilExport voidoperator new[] (size_t size, unsigned long flags)
 New operator used to allocate arrays of objects If there is insufficient memory, an exception will be thrown.
 
static UtilExport voidoperator new[] (size_t size, const std::nothrow_t &e, unsigned long flags)
 New operator used to allocate arrays of objects If there is insufficient memory, NULL will be returned.
 
static UtilExport void operator delete (void *ptr)
 Standard delete operator used to deallocate an object If the pointer is invalid, an exception will be thrown.
 
static UtilExport void operator delete (void *ptr, const std::nothrow_t &e)
 Standard delete operator used to deallocate an object If the pointer is invalid, nothing will happen.
 
static UtilExport void operator delete (void *ptr, const char *filename, int line)
 Delete operator used to deallocate an object that takes the filename and line number where the delete was called If the pointer is invalid, an exception will be thrown.
 
static UtilExport void operator delete (void *ptr, int block_type, const char *filename, int line)
 Delete operator used to deallocate an object that takes the type of memory, filename and line number where the delete was called If the pointer is invalid, an exception will be thrown.
 
static UtilExport void operator delete (void *ptr, const std::nothrow_t &e, const char *filename, int line)
 Delete operator used to deallocate an object that takes the filename and line number where the delete was called If the pointer is invalid, nothing will happen.
 
static UtilExport void operator delete (void *ptr, unsigned long flags)
 Delete operator used to deallocate an object that takes extra flags to specify special operations If the pointer is invalid, an exception will be thrown.
 
static UtilExport void operator delete (void *ptr, const std::nothrow_t &e, unsigned long flags)
 Delete operator used to deallocate an object that takes extra flags to specify special operations If the pointer is invalid, nothing will happen.
 
static UtilExport void operator delete[] (void *ptr)
 Standard delete operator used to deallocate an array of objects If the pointer is invalid, an exception will be thrown.
 
static UtilExport void operator delete[] (void *ptr, const std::nothrow_t &e)
 Standard delete operator used to deallocate an array of objects If the pointer is invalid, nothing will happen.
 
static UtilExport void operator delete[] (void *ptr, const char *filename, int line)
 Delete operator used to deallocate an array of objects that takes the filename and line number where the delete was called If the pointer is invalid, an exception will be thrown.
 
static UtilExport void operator delete[] (void *ptr, int block_type, const char *filename, int line)
 Delete operator used to deallocate an array of objects that takes the type of memory, filename and line number where the delete was called If the pointer is invalid, an exception will be thrown.
 
static UtilExport void operator delete[] (void *ptr, const std::nothrow_t &e, const char *filename, int line)
 Delete operator used to deallocate an array of objects that takes the filename and line number where the delete was called If the pointer is invalid, nothing will happen.
 
static UtilExport void operator delete[] (void *ptr, unsigned long flags)
 Delete operator used to deallocate an array of objects that takes extra flags to specify special operations If the pointer is invalid, an exception will be thrown.
 
static UtilExport void operator delete[] (void *ptr, const std::nothrow_t &e, unsigned long flags)
 Delete operator used to deallocate an array of objects that takes extra flags to specify special operations If the pointer is invalid, an exception will be thrown.
 
static UtilExport voidoperator new (size_t size, void *placement_ptr)
 Placement new operator.
 
static UtilExport void operator delete (void *ptr, void *placement_ptr)
 Placement delete operator.
 
static UtilExport voidaligned_malloc (size_t size, size_t alignment)
 Allocates memory on a specified alignment boundary.
 
static UtilExport voidaligned_realloc (void *ptr, size_t size, size_t alignment)
 Reallocates memory on a specified alignment boundary.
 
static UtilExport void aligned_free (void *ptr)
 Frees a block of memory that was allocated with aligned_malloc/aligned_realloc.
 
- Protected Member Functions inherited from ToolItem
 ToolItem (ToolItemType type, int id, DWORD helpID, int w, int h, int orient)
 

Detailed Description

See also
Class ToolItem, Custom User Interface 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.

Constructor & Destructor Documentation

◆ ToolOtherItem()

ToolOtherItem ( const MCHAR cls,
int  w,
int  h,
int  id,
DWORD_PTR  style = WS_CHILD | WS_VISIBLE,
int  y = CENTER_TOOL_VERTICALLY,
const MCHAR wt = nullptr,
DWORD  hID = 0,
int  ori = 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.
3467 : ToolItem(CTB_OTHER, id, hID, w, h, ori), y(y), windowText(wt), className(cls), style(style) {}
Definition: custcont.h:3155
int h
Definition: custcont.h:3160
int w
Definition: custcont.h:3160
int y
Definition: custcont.h:3441
DWORD_PTR style
Definition: custcont.h:3442
const MCHAR * className
Definition: custcont.h:3443
const MCHAR * windowText
Definition: custcont.h:3444
@ CTB_OTHER
A user-defined tool type.
Definition: custcont.h:3116

Member Data Documentation

◆ y

int y = 0

◆ style

DWORD_PTR style = 0

◆ className

const MCHAR* className = nullptr

◆ windowText

const MCHAR* windowText = nullptr