![]() |
No client edge in CView |
Post Reply
|
| Author | |
Andreas Bergmei
Newbie
Joined: 06 March 2006 Location: Germany Status: Offline Points: 4 |
Post Options
Thanks(0)
Quote Reply
Topic: No client edge in CViewPosted: 16 March 2006 at 7:44am |
|
When I'm adding ModifyStyleEx(WS_EX_CLIENTEDGE,0, SWP_FRAMECHANGED); to my OnInitialUpdate (to remove the 3d view off my CView) the CXTPShortcutBar starts to resize wrong. How must one remove the ClientEdge for this to work?
|
|
![]() |
|
kstowell
Admin Group
Joined: 25 January 2003 Location: MIchigan, USA Status: Offline Points: 496 |
Post Options
Thanks(0)
Quote Reply
Posted: 22 March 2006 at 2:34pm |
|
One way to do this would be to override WM_NCPAINT and draw the border yourself instead of removing the window style, for example:
Regards, Codejock Support |
|
![]() |
|
Andreas Bergmei
Newbie
Joined: 06 March 2006 Location: Germany Status: Offline Points: 4 |
Post Options
Thanks(0)
Quote Reply
Posted: 24 May 2006 at 10:40am |
|
Ok, let's put it another way.
What if I set NO window style on creation of my view (embedding ShortcutBar). Then I have the same problem. Basicly my question is why the ShortcutBar resizes wrong (maximizing a window, initial creation of window), when I have no WS_EX_CLIENTEDGE defined? Does it need some specific messages to handle the resize right or what does this depend on? |
|
![]() |
|
Andreas Bergmei
Newbie
Joined: 06 March 2006 Location: Germany Status: Offline Points: 4 |
Post Options
Thanks(0)
Quote Reply
Posted: 31 May 2006 at 7:18am |
|
We were moving the ShortcutBar to full size in OnDraw. Seems like when disabling the border we get a wrong ClientSize in OnDraw (somehow).
We cleared the OnDraw and are now maximizing the ShortcutBar in OnInitialUpdate and OnSize only which seems to work just fine (and should be faster anyhow). |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |