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
Solved

CWndSplitter Border

Posted on 2000-04-19
2
370 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
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.
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

809 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