If you have a page that contains something like this:
+----------------------------+
| Static Text |
+----------------------------+
| |
| |
| |
| |
| CListBox |
| |
| |
| |
| |
+----------------------------+
| Static Text |
+----------------------------+
| |
| |
| |
| |
| CListBox |
| |
| |
| |
| |
+----------------------------+
and the application starts up *not* maximized, when you expand this page, the redrawing isn’t quite right, and looks like this:
+----------------------------+
| Static Text |
+----------------------------+
| |
| |
| |
| |
| CListBox |
| |
| |
| |
| |
+----------------------------+
| Static Text |
+----------------------------+
| |
| |
| |
| |
| CListBox |
| Static Text here, too! |
| |
| |
| |
+----------------------------+
If you click on another caption, then back on this one, then it redraws properly. If you maximize the application and restart such that it starts maximized, it redraws properly.
However, I just ran into another interesting behavior that may be related to the style bug that I just reported. If I have the following style bits set, it behaves as above:
__EPCWS_CAPTION_HOVER | __EPCWS_CAPTION_TOOLTIPS | __EPCWS_CAPTION_CENTER_TEXT |
__EPCWS_SINGLE_EXPANDED | __EPCWS_SINGLE_FULL_SIZE
But if I have the following style bits set:
__EPCWS_CAPTION_HOVER | __EPCWS_CAPTION_TOOLTIPS | __EPCWS_CAPTION_CENTER_TEXT |
__EPCWS_SINGLE_EXPANDED | __EPCWS_SINGLE_FULL_SIZE | __EPCWS_NOT_ALL_CONTRACTED
the static text appears in the CListBox area regardless of the number of times I click on various captions when the application is maximized *and* not maximized. The strange thing about it is that the static text appears *twice*, rather than just being drawn once in the incorrect location.