Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - Possible Drawing Bug
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Possible Drawing Bug

 Post Reply Post Reply
Author
Message
Simon HB9DRV View Drop Down
Senior Member
Senior Member
Avatar

Joined: 07 July 2005
Location: Switzerland
Status: Offline
Points: 458
Post Options Post Options   Thanks (0) Thanks(0)   Quote Simon HB9DRV Quote  Post ReplyReply Direct Link To This Post Topic: Possible Drawing Bug
    Posted: 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
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Simon HB9DRV View Drop Down
Senior Member
Senior Member
Avatar

Joined: 07 July 2005
Location: Switzerland
Status: Offline
Points: 458
Post Options Post Options   Thanks (0) Thanks(0)   Quote Simon HB9DRV Quote  Post ReplyReply Direct Link To This Post Posted: 18 November 2006 at 2:50pm
Originally posted by oleg oleg wrote:

Hello,

It can be only clip problem. If right pane part of child frame, check that all childs have WS_CLIPCHILDREN|WS_CLIPSIBLINGS styles.

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
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Simon HB9DRV View Drop Down
Senior Member
Senior Member
Avatar

Joined: 07 July 2005
Location: Switzerland
Status: Offline
Points: 458
Post Options Post Options   Thanks (0) Thanks(0)   Quote Simon HB9DRV Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.172 seconds.