|
|
|
|
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.
Subject |
Author |
Date |
|
Francesco A
|
Jul 31, 2003 - 6:24 PM
|
Hi, I have some problem using some static controls with dockable windows. I’m writing a SDI app using your library. I build (with the resource editor ) a dialog window containing some controls.
I declared in the main Frame a CExtControlBar m_wndResizableBar1; then I attack to it the dialog window. All works good but when I added a group box and a simple label I found a bad graphic effect. The background of both controls is white and, if I move the window around, it is draw even worst. (I’m using the 2003 style) I’m tryng your library from 3 days so, probably, I’m missing someting. I searched a lot on the web but I didn’t found anything either on your forum and on codeproject.
I also tried to subclass the CExtButton but the Static control has a border and seems that is not possible to obtain a groupbox (the BS_GROUPBOX is ignored?). I see that you have used without problem these controls on your sample app ProfUIS_Controls so I really don’t know what is wrong.
Sorry for the very long post and thank you. Francesco
P.S. Your library is very very cool!!
|
|
Francesco A
|
Aug 1, 2003 - 3:40 AM
|
OK I solved the problem with the label. I set the FLAT property and now it’s shown without the border... :)
|
|
Sergiy Lavrynenko
|
Aug 1, 2003 - 10:13 AM
|
Dear Francesco,
To change the FLAT style of the button you should use CExtButton::SetFlat( BOOL bFlat ) method.
Unfortunately, the group-box is not a good control for using with resizable dialog. It intersects with the controls inside its area. This makes group-box incompatible with any flicker-free windows (usually based on the double-buffered paiting algorithm) like CExtResizableDialog .
Please take a look at the latest Microsoft’s applications (any Visual Studio .NET or Office XP/2003). They have no group-boxes inside control bars or inside any resizable windows. But you can find an embossed horizontal lines with the text similar to group-box’s top line.
Best regards, Sergiy.
|
|