Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - Controls  in the  Dockpane  disappeared
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Controls in the Dockpane disappeared

 Post Reply Post Reply
Author
Message
deepstar View Drop Down
Newbie
Newbie
Avatar

Joined: 28 March 2008
Location: China
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote deepstar Quote  Post ReplyReply Direct Link To This Post Topic: Controls in the Dockpane disappeared
    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

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: 13 June 2008 at 4:16pm
Hi,
Also add WS_CLIPCHILDREN|WS_CLIPSIBLINGS  for your main View.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
deepstar View Drop Down
Newbie
Newbie
Avatar

Joined: 28 March 2008
Location: China
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote deepstar Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
deepstar View Drop Down
Newbie
Newbie
Avatar

Joined: 28 March 2008
Location: China
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote deepstar Quote  Post ReplyReply Direct Link To This Post 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!
Back to Top
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1198
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post Posted: 15 February 2010 at 5:08pm
Hi;

How did you solve this?
Martin

Product: Xtreme Toolkit v 19.0.0, new Projects v 19.1.0
Platform: Windows 10 v 1909 (64bit)
Language: VC++ 2017
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.141 seconds.