troubleshooting Question

Two CSplitterWnd in a CFrameWnd

Avatar of mridey
mridey asked on
System Programming
6 Comments1 Solution1053 ViewsLast Modified:
I'm trying to get an horizontal splitter within the right view of a vertical splitter within the main CFrameWnd of an SDI application.
I have this simplified code:

BOOL CNVMainFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext)
{
  m_wndSplitter.CreateStatic(this, 1,2);
  m_wndSplitter.CreateView(0,0, RUNTIME_CLASS(CNVTreeView),CSize(0, 0), pContext);
  m_wndSplitter.CreateView(0,1, RUNTIME_CLASS(CFrameWnd),CSize(0, 0), pContext);
  m_wndSplitter1.CreateStatic(m_wndSplitter.GetPane(0,1),2,1);
  m_wndSplitter1.CreateView(0,0, RUNTIME_CLASS(CNVTopTabView),CSize(0, 0), pContext);
  m_wndSplitter1.CreateView(1,0, RUNTIME_CLASS(CNVBottomTabView),CSize(0, 0), pContext);
  return TRUE;
}

The question is:

Using the above code show a border around the right view and creates a double border at the top. I would like the two splitter bars to appear at the same level.
How do I remove the sunken border effect of the CFrameWnd ?

Thanks
ASKER CERTIFIED SOLUTION
Roshan Davis

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 6 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros