Print Page | Close Window

Drawing not updated after adding Docking Pane

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=13144
Printed Date: 13 May 2025 at 6:59am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Drawing not updated after adding Docking Pane
Posted By: firdausabhar
Subject: Drawing not updated after adding Docking Pane
Date Posted: 11 January 2009 at 10:24pm
Hi,

I have a problem using Docking Pane. I'm developing a simple MFC application to draw objects in OnDraw function. However, after adding the docking pane, I cannot see my drawing (Pic 1). Instead, if i 'auto-hide' my pane, then i can see what have been drawn (Pic 2). Strangely, I can also update my drawing if i minimise and then maximise back my application.

Furthuremore, the place where the dock was before turns black if both of the pane autohide. (Pic 3).

In OnDraw(CDC* ipDC), i use BitBlt and set the OnEraseBkgnd(CDC* pDC) to return TRUE.

Thanks in advance,

Cheers,
F.Abhar

Pic 1:

.


Pic 2:



Pic 3:







-------------
Product: Xtreme Toolkit Pro v12.0      
Platform: Windows Vista Business (32bit) - SP 1, Aero Activated
Language: VStudio 2005, MFC, C++



Replies:
Posted By: Oleg
Date Posted: 12 January 2009 at 1:17am
Hi,
Attach sample to show what you do.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: adrien
Date Posted: 12 January 2009 at 2:15am
sounds like you haven't set the style WS_CLIPSIBLINGS on the main client area.

-------------
http://www.wingate.com - http://www.wingate.com


Posted By: firdausabhar
Date Posted: 12 January 2009 at 8:26am
Hi, thanks for the replies,

I follow instructions in Codejock's Tutorial (Toolkit Pro User Guide) on adding docking pane to my application. First, I create the bars in OnCreate function:

// Create docking panes. CXTPDockingPane* pwndPane1 = m_paneManager.CreatePane( IDR_PANE_OPTIONS, CRect(0, 0,200, 120), dockLeftOf); CXTPDockingPane* pwndPane2 = m_paneManager.CreatePane( IDR_PANE_PROPERTIES, CRect(0, 0,200, 120), dockBottomOf, pwndPane1)


Then I added icons for the panes:

int nIDIcons[] = {IDR_PANE_OPTIONS, IDR_PANE_PROPERTIES}; m_paneManager.SetIcons(IDB_BITMAP_ICONS, nIDIcons, _countof(nIDIcons), RGB(0, 255, 0));


I disabled the code to attach CWnd derived class (OnDockingPaneNotify) since it doesn't have any difference after I enabling it before. Am I missing something?

I also changed my MainFrm derived class to CXTPFrameWnd since I would change my application interface later.

Thanks in advanced.

Cheers,
F.Abhar.


-------------
Product: Xtreme Toolkit Pro v12.0      
Platform: Windows Vista Business (32bit) - SP 1, Aero Activated
Language: VStudio 2005, MFC, C++



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