![]() |
Possible Drawing Bug |
Post Reply
|
| Author | |
Simon HB9DRV
Senior Member
Joined: 07 July 2005 Location: Switzerland Status: Offline Points: 458 |
Post Options
Thanks(0)
Quote Reply
Topic: Possible Drawing BugPosted: 05 November 2006 at 10:59am |
|
Hi,
The picture below http://www.hb9drv.ch/tmp/pics/dm-draw-bug.jpg Shows a drawing problem where text on the current line of a CRichTextCtrl 'mangles' the pane contents on the right, the station I'm copying is a Russian :-) Probably me missing something, I can live with this. I can supply code if required, the whole project is rather large :-) Thanks for the finest programming library available for MFC. |
|
|
Simon HB9DRV
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 06 November 2006 at 1:38am |
|
Hello, It can be only clip problem. If right pane part of child frame, check that all childs have WS_CLIPCHILDREN|WS_CLIPSIBLINGS styles.
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Simon HB9DRV
Senior Member
Joined: 07 July 2005 Location: Switzerland Status: Offline Points: 458 |
Post Options
Thanks(0)
Quote Reply
Posted: 18 November 2006 at 2:50pm |
Hi oleg, I don't understand, sorry. Please look at the attached picture. The Macros pane is defined as: CXTPOfficeBorder<CMyXTPTaskPanel> m_wndMacrosPanel; And created: m_wndMacrosPanel.Create(WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS | WS_CLIPCHILDREN, CRect(0, 0, 0, 0), this, 0); H E L P !!! ![]() So what should I change here? ![]() |
|
|
Simon HB9DRV
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 19 November 2006 at 3:11am |
|
Hello,
your CChildFrame must have clip styles and its view also.
add something like:
BOOL CChildFrame::PreCreateWindow(CREATESTRUCT& cs)
{ // TODO: Modify the Window class or styles here by modifying // the CREATESTRUCT cs if( !CMDIChildWnd::PreCreateWindow(cs) )
return FALSE; cs.style |= WS_CLIPCHILDREN|WS_CLIPSIBLINGS;
return TRUE;
} |
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Simon HB9DRV
Senior Member
Joined: 07 July 2005 Location: Switzerland Status: Offline Points: 458 |
Post Options
Thanks(0)
Quote Reply
Posted: 28 November 2006 at 10:20am |
|
Hi Oleg,
Many thanks for this. I will get back to you - I have an oddish configuration here, I will be digging at your knowledge. |
|
|
Simon HB9DRV
|
|
![]() |
|
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 |