Public Member Functions

CUIPosData Class Reference

Search for all occurrences

Detailed Description

See also:
Class CUIFrameMsgHandler, Class ICustomControl.

Description:
This is the object that provides the position data when the CUIFrameMsgHandler::ProcessMessage() method receives 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.

#include <custcont.h>

Inheritance diagram for CUIPosData:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual  ~CUIPosData ()
virtual int  GetWidth (int sizeType, int orient)
virtual int  GetHeight (int sizeType, int orient)

Constructor & Destructor Documentation

virtual ~CUIPosData ( ) [inline, virtual]
Remarks:
Destructor.
Default Implementation:
{}
{}

Member Function Documentation

virtual int GetWidth ( int  sizeType,
int  orient 
) [inline, virtual]
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:
sizeType The size type. See CUI Frame Size Types.
orient The orientation. See CUI Frame Orientations.
Default Implementation:
{ return 50; }
{ return 50; }
virtual int GetHeight ( int  sizeType,
int  orient 
) [inline, virtual]
Remarks:
Returns the height for the specified size type and orientation.
Parameters:
sizeType The size type. See CUI Frame Size Types.
orient The orientation. See CUI Frame Orientations.
Default Implementation:
{ return 50; }
{ return 50; }

CUIPosData CUIPosData CUIPosData CUIPosData CUIPosData CUIPosData CUIPosData CUIPosData CUIPosData CUIPosData
CUIPosData CUIPosData CUIPosData CUIPosData CUIPosData CUIPosData CUIPosData CUIPosData CUIPosData CUIPosData