Click to See Complete Forum and Search --> : How to: prevent static splitter bar from tracking ?
MeierD
May 20th, 1999, 08:32 AM
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
JohnCz
May 20th, 1999, 01:00 PM
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
MeierD
May 21st, 1999, 03:32 AM
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
BrianOG
May 21st, 1999, 03:57 AM
Use your derived class (with the CWnd:: mouse messages) for the horizontal and use CSplitterWnd (normal one) for the vertical.
MeierD
May 21st, 1999, 07:04 AM
Thanks to all for your help !
It works very fine !
Regards,
Daniel
MeierD
May 21st, 1999, 07:07 AM
Thanks for your help !
It works very fine !
The feature to dynamicaly replace the view
is quite nice, thanks !
Regards,
Daniel
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.