BUG: MFC Dockable Toolbars Do Not Paint Correctly with the CBRS_ALIGN_TOP Style (251232)
The information in this article applies to:
- The Microsoft Foundation Classes (MFC), when used with:
- Microsoft Visual C++, 32-bit Enterprise Edition 5.0
- Microsoft Visual C++, 32-bit Professional Edition 5.0
- Microsoft Visual C++, 32-bit Enterprise Edition 6.0
- Microsoft Visual C++, 32-bit Professional Edition 6.0
- Microsoft Visual C++, 32-bit Learning Edition 6.0
This article was previously published under Q251232 SYMPTOMS
When you create a toolbar using the MFC CToolBar class and if you used the CBRS_ALIGN_TOP style, then the toolbar may not paint properly. You see dark spots on the right most and left most edges of the toolbar. This repainting problem is more obvious if you undock the toolbar and dock it again.
RESOLUTION
Use the CBRS_TOP style instead of CBRS_ALIGN_TOP. CBRS_TOP is defined as the following:
#define CBRS_TOP (CBRS_ALIGN_TOP|CBRS_BORDER_BOTTOM)
Thus, if you use CBRS_TOP or use CBRS_ALIGN_TOP along with CBRS_BORDER_BOTTOM, it works correctly and as expected.
STATUSMicrosoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.
Modification Type: | Major | Last Reviewed: | 12/11/2003 |
---|
Keywords: | kbBug kbCmnCtrls kbMFCCtrlBar kbpending kbToolbar KbUIDesign KB251232 |
---|
|