PRB: BS_GROUPBOX-Style Child Window Background Painting Wrong (79982)
The information in this article applies to:
- Microsoft Windows Software Development Kit (SDK) 3.1
This article was previously published under Q79982
3.00 3.10
WINDOWS
kbprg kbprb kbcode
SYMPTOMS
When a BS_GROUPBOX style window is created, its background does not
erase correctly.
CAUSE
The parent window of the BS_GROUPBOX style window has the
WS_CLIPCHILDREN style, which prevents the parent window from
erasing the group box's background.
RESOLUTION
Subclass the group box window to process the WM_ERASEBKGND message
by erasing its background. Listed below is a code fragment to
demonstrate this procedure.
STATUS
This behavior is by design.
Modification Type: | Minor | Last Reviewed: | 2/11/2005 |
---|
Keywords: | kb16bitonly kbButton kbCtrl kbprb KB79982 |
---|
|