Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » CExtPageContainer redraw bug Collapse All
Subject Author Date
Krustys Donuts Nov 16, 2005 - 7:27 AM

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.

Technical Support Nov 16, 2005 - 11:15 AM

Please invoke the CExtPageContainerWnd::Create() method and specify the WS_CHILD|WS_VISIBLE|WS_CLIPCHILDREN|WS_CLIPSIBLINGS flags in its dwWindowStyle parameter. The overlapping effect should be fixed.

Krustys Donuts Nov 16, 2005 - 11:36 AM

Unfortunately, this did not fix the problem...

Technical Support Nov 16, 2005 - 12:10 PM

Could you modify the PageContainer sample application to reproduce the problem and then send it to us?