Print Page | Close Window

pane focus problem

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=704
Printed Date: 10 May 2024 at 3:57am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: pane focus problem
Posted By: ipaqlinux48
Subject: pane focus problem
Date Posted: 08 May 2004 at 3:53am

Hi,

I've a focus problem with autohiding panes. I've an SDI application which has several views. One view (the project view) is attached to a pane. The master view occupies the complete mainframe window.

When I double click on the untitled treenode, a tab control appears in the main view.

When you look very good, you can see that the pane is still active. When I click on the main view, the pane becomes visible and dissapears after a second.

Can someone help me with this problem?

My CMainFrame::PreCreateWindow looks like this:

BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs)

{

if( !CXTPFrameWnd::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;

}

Thanks in advance!




Replies:
Posted By: Oleg
Date Posted: 11 May 2004 at 2:30pm
Send to mailto:suport@codejock.com - suport@codejock.com sample and screenshots.

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


Posted By: jscott
Date Posted: 13 May 2004 at 12:47pm

I am currently having the same problem with this in a MDI application where I attach the panes to the CMDIChildWnd.  Has anyone sent a sample app to code jock yet?



-------------
-JD


Posted By: Oleg
Date Posted: 13 May 2004 at 12:54pm

Do you have

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: jscott
Date Posted: 13 May 2004 at 1:14pm

I have...

BOOL CDrivedChildFrame::PreCreateWindow(CREATESTRUCT& cs)

  cs.style |= WS_CLIPCHILDREN|WS_CLIPSIBLINGS;

  return CMDIChildWnd::PreCreateWindow(cs);

}

Would It make a difference if I change the style once I call the base classes PreCreateWindow() with the original CREATESTRUCT?



Posted By: jscott
Date Posted: 13 May 2004 at 3:38pm

I tried...

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;
}

and it still doesn't work. 

I derive from the toolkit's child wnd class(CXTMDIChildWnd ) and not MFC's Child Wnd Class (CMDIChildWnd).



-------------
-JD


Posted By: Oleg
Date Posted: 14 May 2004 at 12:11am
Send your project to support to test.

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


Posted By: spike
Date Posted: 23 June 2004 at 11:23am

Make sure that every window in the Frame window has those 2 styles. I was having the same problem and called tech support about it, but found that it was my Splitter windows in the frame that didnt have those styles. Once I added them it worked fine.

 




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