Class CUIPosData

3DS Max Plug-In SDK

Class CUIPosData

See Also: Class CUIFrameMsgHandler, Class ICustomControl.

class CUIPosData

Description:

This class is available in release 3.0 and later only.

This is the object that provides the position data when the CUIFrameMsgHandler::ProcessMessage() method recieves a CUI_POSDATA_MSG message. The developer creates an instance of this class and implements the GetWidth() and GetHeight() methods which return size information based on the size type and orientation passed.

Methods:

public:

Prototype:

virtual ~CUIPosData();

Remarks:

Destructor.

Default Implementation:

{}

Prototype:

virtual int GetWidth(int sizeType, int orient);

Remarks:

Returns the width for the specified size type and orientation. A return value of -1 indicates that the frame doesn't have a specific needed value (it doesn't care).

Parameters:

int sizeType

The size type. See List of CUI Frame Size Types.

int orient

The orientation. See List of CUI Frame Orientations.

Default Implementation:

{ return 50; }

Prototype:

virtual int GetHeight(int sizeType, int orient);

Remarks:

Returns the height for the specified size type and orientation.

Parameters:

int sizeType

The size type. See List of CUI Frame Size Types.

int orient

The orientation. See List of CUI Frame Orientations.

Default Implementation:

{ return 50; }