How to: prevent static splitter bar from tracking ?
Hi,
Could anyone explain, how I can prevent only the horizontal splitter bar from tracking.
I have an application with a vertical and a horizontal splitter bar.
The tracking of the vertical splitter bar must not prevent from tracking.
Thanks for your help.
Regards,
Daniel
Re: How to: prevent static splitter bar from tracking ?
Override all mouse messages related to a mouse movement and click in your splitter class. Instead calling a base class (should be CSplitterWnd) call CWnd directly. For example
Change (CSplitter:: OnMouseMove to CWnd ::OnMouseMove)
Let me know how it works,
John
John Cz
Re: How to: prevent static splitter bar from tracking ?
I've already tried your example before, but my problem is, how I can prevent only the horizontal splitter bar from tracking ?
If I change from CSplitterWnd to CWnd at the mouse methodes, it prevents all splitter bars (horizontal and vertical) !
Is there a posibility to prevent only the horizontal splitter bar from tracking ?
Thanks for your help.
Regards,
Daniel
Re: How to: prevent static splitter bar from tracking ?
Use your derived class (with the CWnd:: mouse messages) for the horizontal and use CSplitterWnd (normal one) for the vertical.
Re: How to: prevent static splitter bar from tracking ?
Thanks to all for your help !
It works very fine !
Regards,
Daniel
Re: How to: prevent static splitter bar from tracking ?
Thanks for your help !
It works very fine !
The feature to dynamicaly replace the view
is quite nice, thanks !
Regards,
Daniel