Print Page | Close Window

Possible Drawing Bug

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Docking Pane
Forum Description: Topics Related to Codejock Docking Pane
URL: http://forum.codejock.com/forum_posts.asp?TID=5434
Printed Date: 12 December 2024 at 10:48am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Possible Drawing Bug
Posted By: Simon HB9DRV
Subject: Possible Drawing Bug
Date Posted: 05 November 2006 at 10:59am
Hi,

The picture below

http://www.hb9drv.ch/tmp/pics/dm-draw-bug.jpg - 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



Replies:
Posted By: Oleg
Date 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


Posted By: Simon HB9DRV
Date 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


Posted By: Oleg
Date 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


Posted By: Simon HB9DRV
Date 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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net