SRGraphTip::ShowTip

void SRGraphTip::ShowTip(LPCSTR strText, CPoint point, CWnd * pParentWnd)

Shows a Graph Tip window

Defined in: grphtip.cpp

Parameters

strText

Text to show

point

Location at which to show the text (see remarks)

pParentWnd

Pointer to the parent window
A Graph Tip can show a multiline of text. A carriage returns or will start a new line. The out text is always aligned in the center of the the tooltip window. The point at which the chart tip is displayed is always relative to the screen -- not to the owner window. Therefore the point parameter must be modified by calling ClientToScreen in the owner window first. The reason for this is that the Graph tip may overlap the frame of the owner window and indeed may even attempt to overlap the side or top of the screen itself. Therefore size and position data are taken from the main window. You may call this function without erasing the existing display. In this case, the window will simply track to the new position and display the supplied text.