MFC Grid manual

CHtmlTooltipCtrl Class Reference

Implements an html browser as a window to display the tooltip. More...

#include <Dapfor/GUI/HtmlTooltipCtrl.h>

Inheritance diagram for CHtmlTooltipCtrl:

CTooltipCtrl ITooltipCtrl IAutoDelete

List of all members.


Public Member Functions

 CHtmlTooltipCtrl (CSize size, bool autoDelete)
 Constructor.
 ~CHtmlTooltipCtrl ()
 Destructor.
virtual bool Attach (CGrid &grid)
 Attaches a tooltip window to the grid.
virtual void Detach ()
 Detaches a tooltip window from the grid.
virtual bool Activate (const CGrid &grid, CGridCell &cell)
 Makes a tooltip window visible.
virtual CString GetCurrentText () const
 Gets the text returned by ITooltip interface.
virtual CSize GetSize (const CGrid &grid, const CGridCell &cell) const
 Gets size of the html window passed in the constructor.
virtual const ITooltipGetDefaultToolip () const
 Gets default implementation of ITooltip interface.

Detailed Description

Implements an html browser as a window to display the tooltip.

Version:
1.0.0.0 Initial version

Constructor & Destructor Documentation

CHtmlTooltipCtrl ( CSize  size,
bool  autoDelete 
)

Constructor.

Parameters:
[in] size Size in pixels of a html browser
[in] autoDelete Indicates that this object can be destroyed in the destructor of CGrid


Member Function Documentation

bool Attach ( CGrid grid  )  [virtual]

Attaches a tooltip window to the grid.

Parameters:
[in] grid The grid
Returns:
True if the tooltip window has been successfully attached to the grid. Otherwse - false.

Reimplemented from CTooltipCtrl.

bool Activate ( const CGrid grid,
CGridCell cell 
) [virtual]

Makes a tooltip window visible.

Parameters:
[in] grid The grid
[in] cell Value indicates location and content of the tooltip

Reimplemented from CTooltipCtrl.

CString GetCurrentText (  )  const [virtual]

Gets the text returned by ITooltip interface.

Returns:
Text in the tooltip

Reimplemented from CTooltipCtrl.

CSize GetSize ( const CGrid grid,
const CGridCell cell 
) const [virtual]

Gets size of the html window passed in the constructor.

Returns:
Size in pixels of the html browser

Reimplemented from CTooltipCtrl.

const ITooltip & GetDefaultToolip (  )  const [virtual]

Gets default implementation of ITooltip interface.

Returns:
Instance of CHtmlTooltip class

Reimplemented from CTooltipCtrl.