Displaying and Removing Help Balloons
Displaying and Removing Help Balloons
When help is enabled, the Help Manager automatically tracks the
cursor and displays and removes help balloons as the user moves the
cursor over hot rectangles specified in 'hrct' resources or over item
rectangles associated with menu items and dialog items that are
specified in 'hmnu' and 'hdlg' resources. If you want to provide help
balloons for areas not defined in these resources, then your application
is responsible for tracking the cursor and determining when to display
and remove help balloons for these application- defined areas.
Displaying a Help Balloon
The HMShowBalloon function lets you display a help balloon for the
content area of any window of your application. You need provide only
the de scriptive help information, the location of the tip the
Help Manager should use to display the help balloon, and a constant
specifying what method to use for displaying and removing the balloon.
You can also provide an alternate rectangle that the Help Manager
uses for moving the help balloon's tip when it tries to fit the help
balloon on screen. You can specify your own balloon definition function
and variation code, and you can provide a pointer to a tip function that
lets your application test and adjust the balloon before displaying it.