Contents Index Topic Contents | ||
Previous Topic: RBHITTESTINFO Next Topic: REBARINFO |
REBARBANDINFO
typedef struct tagREBARBANDINFO{ UINT cbSize; UINT fMask; UINT fStyle; COLORREF clrFore; COLORREF clrBack; LPTSTR lpText; UINT cch; int iImage; HWND hwndChild; UINT cxMinChild; UINT cyMinChild; UINT cx; HBITMAP hbmBack; UINT wID; #if (_WIN32_IE >= 0x0400) UINT cyChild; UINT cyMaxChild; UINT cyIntegral; UINT cxIdeal; LPARAM lParam; UINT cxHeader; #endif } REBARBANDINFO, FAR *LPREBARBANDINFO;Contains information that defines a band in a rebar control.
- cbSize
- Size of this structure, in bytes. Your application must fill this member before sending any messages that use the address of this structure as a parameter.
- fMask
- Flags that indicate which members of this structure are valid or must be filled. This value can be a combination of the following:
RBBIM_BACKGROUND The hbmBack member is valid or must be filled. RBBIM_CHILD The hwndChild member is valid or must be filled. RBBIM_CHILDSIZE The cxMinChild, cyMinChild, cyChild, cyMaxChild, and cyIntegral members are valid or must be filled. RBBIM_COLORS The clrFore and clrBack members are valid or must be filled. RBBIM_HEADERSIZE Version 4.71. The cxHeader member is valid or must be filled. RBBIM_IDEALSIZE Version 4.71. The cxIdeal member is valid or must be filled. RBBIM_ID The wID member is valid or must be filled. RBBIM_IMAGE The iImage member is valid or must be filled. RBBIM_LPARAM Version 4.71. The lParam member is valid or must be filled. RBBIM_SIZE The cx member is valid or must be filled. RBBIM_STYLE The fStyle member is valid or must be filled. RBBIM_TEXT The lpText member is valid or must be filled. - fStyle
- Flags that specify the band style. This value can be a combination of the following:
RBBS_BREAK The band is on a new line. RBBS_CHILDEDGE The band has an edge at the top and bottom of the child window. RBBS_FIXEDBMP The background bitmap does not move when the band is resized. RBBS_FIXEDSIZE The band can't be sized. With this style, the sizing grip is not displayed on the band. RBBS_GRIPPERALWAYS Version 4.71. The band will always have sizing grip, even if it is the only band in the rebar. RBBS_HIDDEN The band will not be visible. RBBS_NOGRIPPER Version 4.71. The band will never have sizing grip, even if there is more than one band in the rebar. RBBS_NOVERT The band won't be displayed when the rebar control uses the CCS_VERT style. RBBS_VARIABLEHEIGHT Version 4.71. The band can be resized by the rebar control. cyIntegral and cyMaxChild affect how the rebar will resize the band. - clrFore and clrBack
- Band foreground and background colors. If hbmBack specifies a background bitmap, these members are ignored. By default, the band will use the background color of the rebar control set with the RB_SETBKCOLOR message. If a background color is specified here, then this background color will be used instead.
- lpText
- Address of a buffer that contains the display text for the band. If band information is being requested from the control and RBBIM_TEXT is specified in fMask, this member must be initialized to the address of the buffer that will receive the text.
- cch
- Size of the buffer at lpText, in bytes. If information is not being requested from the control, this member is ignored.
- iImage
- Zero-based index of any image that should be displayed in the band. The image list is set using the RB_SETBARINFO message.
- hwndChild
- Handle to the child window contained in the band, if any.
- cxMinChild
- Minimum width of the child window, in pixels. The band can't be sized smaller than this value.
- cyMinChild
- Minimum height of the child window, in pixels. The band can't be sized smaller than this value.
- cx
- Length of the band, in pixels.
- hbmBack
- Handle to a bitmap that is used as the background for this band.
- wID
- UINT value that the control uses to identify this band for custom draw notification messages. This value may be used for additional purposes in the future.
- cyChild
- Version 4.71. Initial height of the band, in pixels. This member is ignored unless the RBBS_VARIABLEHEIGHT style is specified.
- cyMaxChild
- Version 4.71. Maximum height of the band, in pixels. This member is ignored unless the RBBS_VARIABLEHEIGHT style is specified.
- cyIntegral
- Version 4.71. Specifies the step value by which the band can grow or shrink, in pixels. If the band is resized, it will be resized in steps specified by this value. This member is ignored unless the RBBS_VARIABLEHEIGHT style is specified.
- cxIdeal
- Version 4.71. Specifies the ideal width of the band, in pixels. If the band is maximized to the ideal width (see RB_MAXIMIZEBAND), the rebar control will attempt to make the band this width.
- lParam
- Version 4.71. A 32-bit application-defined value.
- cxHeader
- Version 4.71. Specifies the size of the band's header, in pixels. The band header is the area between the edge of the band and the edge of the child window. This is the area where band text and images are displayed, if they are specified. If this value is specified, it will override the normal header dimensions that the control calculates for the band.
The cxMinChild, cyMinChild, and cx members provide information on dimensions relative to the orientation of the control. That is, for a horizontal rebar control, cxMinChild and cx are horizontal measurements and cyMinChild is a vertical measurement. However, if the control uses the CCS_VERT style, cxMinChild and cx are vertical measurements and cyMinChild is a horizontal measurement.
Version 4.70
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.