Advertisement

Splitter Windows

Started by September 15, 2000 06:22 PM
0 comments, last by Zipster 24 years, 3 months ago
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...

    This topic is closed to new replies.

    Advertisement