?
Solved

CWndSplitter Border

Posted on 2000-04-19
2
Medium Priority
?
404 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 3

Accepted Solution

by:
V_Bapat earned 200 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 does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
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.
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Suggested Courses
Course of the Month8 days, 5 hours left to enroll

765 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