BCGControlBar Pro for MFC
BOOL CBCGPAutoHideButton::IsHorizontal ( ) const

Determines whether the button is horizontal or vertical.

Returns
Nonzero if the button is horizontal; otherwise 0.

The orientation is set in the Create() function.