
Returns TRUE if control will display disabled state Retrieves control alignment this is alignment of text and icon
#MFC SET ICON FOR FILE CODE#
There is another dialog that runs through different option settings and shows you the code used to generate the XGroupBox that is being displayed:ĬXGroupBox& EnableTheme(BOOL bEnable, BOOL bRedraw = TRUE)Įnables/disables use of themes (if available)īOOL EnableWindow(BOOL bEnable = TRUE, BOOL bRecurseChildren = FALSE)Įnables/disables control, and optionally its children This dialog is resizable and shows difference in flickering between XGroupBox and Win32 groupbox.Ī separate dialog shows how header-only style may be used: The demo app shows some examples of what this control can do: When control is disabled, icon will be displayed in grayscale Support theming or custom colors (for header-only style, theming is not supported)Īllow for disabling of control and optionally disabling all child controls contained within groupbox Replacement for Win32 groupbox, without the flicker when resizedĭisplay standard groupbox or header-only groupboxĮasy to set colors, font, and horizontal alignment

Here are features which XGroupBox implements: The header-only style offers advantages when used in a very compressed UI, since it requires less screen real estate. This control implements two styles of groupboxes: a standard groupbox that allows you to display text and/or an icon and a header-only groupbox, which offers same features, but only displays a single line, rather than a frame.

It seems natural to display an icon in the groupbox header, since studies have shown that graphic images are more quickly recognized by users. They collect together related controls, and guide the user through non-trivial user interfaces. Groupboxes are one of my favorite UI elements.
