<< Return to Main Index

< Return to Class Index

class CGXTabBeam: public CWnd

The CGXTabBeam class provides the functionality of a sheet-tab control. This control looks like an Excel tab control.

Normally, the control is used by the CGXTabWnd class to switch between several views or windows within a frame window.

The tab-beam control can be used in Visual Studio by dragging the user control into the dialog template and specifying the class name as CGXTabBeam. The method RegisterClass registers the window class.

The functionality of the control is simple. After creating the control, you can call InsertTab to insert several tabs. The user can click on the scrolling buttons on the left side to scroll the display of tabs to the left or right by one tab. To select a sheet, the user can simply click on the tab. The clicked tab gets highlighted, and the control sends a WM_GX_TABSWITCH message to the parent window. If the user double-clicks on a tab, the control sends a WM_GX_TABDBLCLK message to the parent window. The parameter wParam of both messages contains the register index.

#include <gxall.h>

See Also

CGXTabWnd CGXTabInfo

CGXTabBeam

Class Members