Click here to Skip to main content
15,888,733 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have used the CSplitterWnd class to create a single-document-multiview program.Firstly,using CreateStatic() function splitted the window into three rows and one column.Then secondly,splitting the second row and the third row into two columns respectively.In the first step,using the CSplitterWnd class.In the second step,using the derived class from CSplitterWnd class.

When I ran the program,there had some splitter lines among the window.So my question is how to control the moving region of these splitter lines?In other words,how to control the top and bottom moving region for horizontal splitter lines,how to control the left and right moving region for vertical splitter lines?

What I have tried:

I overloaded three functions of CSplitterWnd class,OnLButtonDown(),OnMouseMove(),OnSetCursor() to deal with the messages.But there had no effort.So I was confused about these messages.
Posted
Updated 4-Dec-17 17:21pm
Comments
Richard MacCutchan 5-Dec-17 3:32am    
You don't need to control it, the splitter lines are there so the user can adjust the size of the frames.

1 solution

What I would do is look through the articles on splitters at this site : [^] and see if one of them covers what you need. It's hard to guess what you are after when you write "my question is how to control the moving region of these splitter lines?"
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900