Solved

CWndSplitter Border

Posted on 2000-04-19
2
332 Views
Last Modified: 2013-11-20
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
Comment
Question by:rgrand
2 Comments
 
LVL 3

Accepted Solution

by:
V_Bapat earned 50 total points
ID: 2730168
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
 

Author Comment

by:rgrand
ID: 2733971
No other comment, Excellent !
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now