SetReBarStyle SEToolBar

<< Click to Display Table of Contents >>

Navigation:  SEUIXP Classes for X# > Classes > SEToolBar >

SetReBarStyle SEToolBar

Previous pageReturn to chapter overviewNext page


Set the styles of the rebar control. If the toolbar is no rebar, this mehtod has no function.



METHOD SetReBarStyle(kStyle, lEnable) CLASS SEToolBar




The rebar style to set. Available styles see below.


A logical value. TRUE turns the style on, FALSE turns it off. The default value is TRUE.



Rebar Control Styles


Rebar controls support a variety of control styles in addition to standard window styles.





The rebar control will automatically change the layout of the bands when the size or position of the control changes. An RBN_AUTOSIZE notification will be sent when this occurs.



The rebar control displays narrow lines to separate adjacent bands.



The rebar band will toggle its maximized or minimized state when the user double-clicks the band. Without this style, the maximized or minimized state is toggled when the user single-clicks on the band.



The rebar control always displays bands in the same order. You can move bands to different rows, but the band order is static.



The rebar control generates RBN_GETOBJECT notification messages when an object is dragged over a band in the control. To receive the RBN_GETOBJECT notifications, initialize OLE with a call to OleInitialize or CoInitialize.



The rebar control displays bands at the minimum required height, when possible. Without this style, the rebar control displays all bands at the same height, using the height of the tallest visible band to determine the height of other bands.



The size grip will be displayed vertically instead of horizontally in a vertical rebar control. This style is ignored for rebar controls that do not have the CCS_VERT style.