CGXGridCore::GetScrollBarMode
int GetScrollBarMode(int nBar, int nSetting);
nBar
Specifies the scrollbar. It can be SB_VERT for the vertical, SB_HORZ for the horizontal scrollbar.
nSetting
Specifies the scrollbar-state. Specifies the state of the scrollbars: gxnEnabled for always visible, gxnDisabled for hidden, gxnShared for shared scrollbars. gxnAutomatic is used to enable scrollbars if required. You can combine this setting with an OR-operator with gxnEnhanced. If gxnEnhanced is set, scrollbars will have the enhanced scrollbar look&feel, and the grid will always try to display as many cells as possible in the window and automatically scroll if necessary (gxnEnhanced is set by default).
Return Value
Returns the scrollbar-state: gxnEnabled for always visible, gxnDisabled for hidden, gxnShared for shared scrollbars. gxnAutomatic is used to enable scrollbars if required. This setting can be combined with gxnEnhanced. If gxnEnhanced is set, scrollbars will have the enhanced scrollbar look&feel, and the grid will always try to display as many cells as possible in the window and automatically scroll if necessary (gxnEnhanced is set by default).
Remarks
This function returns the scrollbar-state for the specified scrollbar.
The scrollbar-state can be changed with SetScrollbarMode.