<< Return to Main Index

< Return to Class Index

class CGXScrollTipPlugin: public CGXPluginComponent

The CGXScrollTipPlugin simplifies adding scroll-tip support to your grid or other windows using the plug-in approach. CGXScrollTipPlugin provides default implementations of the WM_VSCROLL and WM_HSCROLL message that display the current scroll-thumb position in the scroll tip window.

You don't have to override WM_VSCROLL and WM_HSCROLL messages any more.

Simply call


   EnableScrollTips();

at grid initialization time. This will enable the display of the row and column number when the user is dragging the thumb bar.

If you want to customize the text displayed in the scroll-tips you should use the old approach instead: Embed a CGXScrollTip object into your derived class and forward WM_VSCROLL and WM_HSCROLL messages to the CGXScrollTip object. See  the CGXScrollTip class reference for more details.

Using the scroll-tips component with any view or window

a) Add a pointer to the plug-in object in your view class and allocate a CGXScrollTipPlugin object and call CGXScrollTipPlugin::Plugin at initialization time.

b) Override WindowProc and call the HandleMessage method of the plug-in component.

Using the scroll-tip component with CGXGridCore

Simply call


   EnableScrollTips();

at grid initialization time.

#include <gxall.h>

See Also

CGXPluginComponent CGXScrollTip

CGXScrollTipPlugin

Class Members