Print Page | Close Window

Controls in the Dockpane disappeared

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=11029
Printed Date: 07 February 2025 at 9:47am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Controls in the Dockpane disappeared
Posted By: deepstar
Subject: Controls in the Dockpane disappeared
Date Posted: 13 June 2008 at 12:52pm

I have attached a CDialog as DockingPane in my  no-doc/view application,
but when mouse move on the autoHide  or close button of the pane, the all of controls in the CDialog are disappeared.
otherwise . when i resizeing the pane ,the CDialog is flicker endlessly .
some of code in the following
=======================================
BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs)
{
 if( !CFrameWnd::PreCreateWindow(cs) )
  return FALSE;
 // TODO: Modify the Window class or styles here by modifying
 //  the CREATESTRUCT cs


 cs.style |= WS_CLIPCHILDREN|WS_CLIPSIBLINGS;
 return TRUE;
}


CXTPOfficeBorder<CReportFilesPane>m_wndFiles;
ps:  CReportFilesPane is  derived CDialog 


LRESULT CMainFrame::OnDockingPaneNotify(WPARAM wParam, LPARAM lParam)
{
 .......
 if (m_wndFiles.GetSafeHwnd() == 0)
 {     
  m_wndFiles.Create(IDD_REPORT_FILESDLG,this);
 }      
 pPane->Attach(&m_wndFiles);
 .......

}

==================================
i am not sure that  is the problem about WS_CLIPCHILDREN and WS_CLIPSIBLINGS.  so add the following code.
but it's not any change.
BOOL CReportFilesPane::PreCreateWindow(CREATESTRUCT& cs)
{

 if( !CDialog::PreCreateWindow(cs) )
  return FALSE;
 cs.style = WS_CLIPCHILDREN|WS_CLIPSIBLINGS;

 return TRUE;
 
}


how to does i.


thanks
deepstar




Replies:
Posted By: Oleg
Date Posted: 13 June 2008 at 4:16pm
Hi,
Also add WS_CLIPCHILDREN|WS_CLIPSIBLINGS  for your main View.


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


Posted By: deepstar
Date Posted: 13 June 2008 at 10:52pm
hi. oleg 
this following code is in my CChildview ,and the CChildview is derived CWnd, however  The problem is still unsolved
BOOL CChildView::PreCreateWindow(CREATESTRUCT& cs)
{
 // TODO: Modify the Window class or styles here by modifying
 //  the CREATESTRUCT cs
 if( !CWnd::PreCreateWindow(cs) )
  return FALSE;
 cs.style |= WS_CLIPCHILDREN|WS_CLIPSIBLINGS;
 return TRUE;
}
this is normal pic
mouse move on the autoHiden  button
 
and move out
 
what is reason?
 
thanks a lot
deepstar


Posted By: deepstar
Date Posted: 13 June 2008 at 11:28pm
HI,oleg
I found the problem. it's  the reason about my Dialog Template 's proptery ,
Sorry for the trouble!
 
thank you very much!


Posted By: mgampi
Date Posted: 15 February 2010 at 5:08pm
Hi;

How did you solve this?


-------------
Martin

Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0
Platform: Windows 10 v 22H2 (64bit)
Language: VC++ 2022



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