pane focus problem |
Post Reply |
Author | |
ipaqlinux48
Newbie Joined: 31 March 2004 Location: Belgium Status: Offline Points: 16 |
Post Options
Thanks(0)
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 cscs.style |= WS_CLIPCHILDREN|WS_CLIPSIBLINGS; return TRUE;} Thanks in advance! |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Send to suport@codejock.com sample and screenshots.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
jscott
Newbie Joined: 13 May 2004 Location: United States Status: Offline Points: 7 |
Post Options
Thanks(0)
|
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
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Do you have BOOL CChildFrame::PreCreateWindow(CREATESTRUCT& cs) if( !CMDIChildWnd::PreCreateWindow(cs) ) cs.style |= WS_CLIPCHILDREN|WS_CLIPSIBLINGS; return TRUE; ? |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
jscott
Newbie Joined: 13 May 2004 Location: United States Status: Offline Points: 7 |
Post Options
Thanks(0)
|
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? |
|
jscott
Newbie Joined: 13 May 2004 Location: United States Status: Offline Points: 7 |
Post Options
Thanks(0)
|
I tried... BOOL CChildFrame::PreCreateWindow(CREATESTRUCT& cs) if( !CMDIChildWnd::PreCreateWindow(cs) ) 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
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Send your project to support to test.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
spike
Groupie Joined: 13 May 2003 Location: United States Status: Offline Points: 48 |
Post Options
Thanks(0)
|
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.
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |