Win32 parent window issues

I am making my first Win32 application. I have two edit boxes with a "splitter" in the middle. All the splitter really is is the main window poking through between the two edit boxes. The purpose is that when this piece is clicked and dragged, the edit boxes are resized so that it looks like the splitter is something that really exists.

This has been good up until now. I've changed an edit box into a tab window. The tab window doesn't seem to be activated like the edit boxes, so when I click on it the program thinks that this is the Main window. The "splitter" moves, and everything goes to heck.


Any thoughts? Thanks.

Edit: Just to add, I haven't added anything to the tab window, it just is.
Last edited on
Simplest would be to stop using the main window as a splitter. Just add a window between the sections to be the splitter.

Otherwise perform hit-test calculations to make the click behave as a splitter click only if the click is made within the expected window region.
Topic archived. No new replies allowed.