Click to See Complete Forum and Search --> : Creating non-sizeable splitter windows


Brad Younie
April 24th, 1999, 07:30 AM
I have an SDI with a a CSplitterWnd that I created inside my FrameWnd's OnCreateClient. The only problem is that the user can resize the bottom pane and I want it to be unsizeable.

Any thoughts?

Roger Osborn
April 24th, 1999, 02:15 PM
You can do this by deriving your splitter wnd from CSplitterWnd and overriding four functions:

Have OnLButtonDown do nothing;
Have OnLButtonUp do nothing;
Have OnMouseMove call CWnd:OnMouseMove (*NOT* CSplitterWnd)
Have OnSetCursor return FALSE;

That should do the trick,
Cheers,
Roger