restricting CSplitterWnd pane to minimum size
-
Hello all, I'm trying to restrict the left pane of a split window to a certain size. For instance, the left pane should not be allowed to get smaller than 100 pixels, but it can get wider; same for the right pane. There is a minimum arg when creating pane, but that just means if it gets under 100 pixels, it closes all the way up. I would like for it to not get any smaller than 100 pixels. I've seen articles that tell you how to lock the bar, but this is not what I want. Thanks in advance.
My Music | My Pics | My Articles BlackDice
-
Hello all, I'm trying to restrict the left pane of a split window to a certain size. For instance, the left pane should not be allowed to get smaller than 100 pixels, but it can get wider; same for the right pane. There is a minimum arg when creating pane, but that just means if it gets under 100 pixels, it closes all the way up. I would like for it to not get any smaller than 100 pixels. I've seen articles that tell you how to lock the bar, but this is not what I want. Thanks in advance.
My Music | My Pics | My Articles BlackDice
BD, I worked with some splitter stuff like this in ancient memory. Right off the top of my head, I'd suggest you take a look at handling the resizing messages as I recall that's how I did it. I don't remember if it was as simple as WM_SIZE, but look at the splitter wnd documentation & see what size oriented messages they respond to. I do realize this is a bit vague, but it might point you down a productive path. Hope it helps.
Author of The Career Programmer and Unite the Tribes www.PracticalStrategyConsulting.com