Splitter Windows
I want to use/implement splitter windows WITHOUT using MFC. CSplitterWnd right? Declared in afxwin.h. However, when i include that file, it wont let me include windows.h as well. So how do i use splitter windows without MFC intervening?
=======================================
A man with no head is still a man.
A head with no man is plain freaky.
If you want to use Win32 - sorry - there is no Splitter window class.
But you can easily implement this yourself
Catch the WM_LBUTTONDOWN in you main WndProc (that small strip left ?!), and Capture the mouse input.
Catch the WM_MOUSEMOVE, check if captured, use 2 calls to DrawFocusRect to draw the bar (and to erase it again!)
Catch the WM_LBUTTONUP and release the capture (if captured), and move the child windows to the new location and size.
It''s easier than you might first think
The Windows Explorer also has a splitter coded like this...
But you can easily implement this yourself
It''s easier than you might first think
The Windows Explorer also has a splitter coded like this...
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement