SRGraphTip::ShowTip

voidSRGraphTip::ShowTip(CPointpoint, CWnd*pParentWnd, LPCTSTRlpszFormat)

This function is a variable argument version of the original ShowTip function. It works the way printf works. It accept variable argument and output according to the format string specified in lpszFormat. It supports multiline of tips. The line is divided by '\\n' char in the format string like the printf does. Each line of text will be centered on the tooltip window.

Defined in: grphtip.cpp

Return Value

void

Parameters

point

Position the tooltip will showup.

pParentWnd

Parent window pointer of this tooltip window

lpszFormat

Output format string. Accept the '\\n' char in the format.

Developer Notes

These function use a internal buffer of size 1024. So make sure the output string is not over 1024 in size. Hope this size is big enough for tooltip text.