• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 426
  • Last Modified:

CWndSplitter Border

I have made a splitter view with 4 views. I would like to know how to reduce to the minimum the border between each splitter.

Thank you for help
0
rgrand
Asked:
rgrand
1 Solution
 
V_BapatCommented:
CSplitterWnd has two protected members m_cxBorder and m_cyBorder. Set their size to what you want. If you set them to zero, the splitter bar will no longer be visible.
Since these are protected, derive your class from CSplitterWnd and modify them in your derived class.
Example:
1. Derive a class from CSplitterWnd.
2. Add a function

void SetBarWidth(int x, int y)
{
   m_cxBorder = x;
   m_cyBorder = y;
}
3. After you create the splitter in the MainFrame, call
m_mysplitter.SetBarWidth(0, 0);


All the best.

Vicky

0
 
rgrandAuthor Commented:
No other comment, Excellent !
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now