|
-
May 20th, 1999, 08:32 AM
#1
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
-
May 20th, 1999, 01:00 PM
#2
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
There are only 10 types of people in the world:
Those who understand binary and those who do not.
-
May 21st, 1999, 03:32 AM
#3
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
-
May 21st, 1999, 03:57 AM
#4
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.
-
May 21st, 1999, 07:04 AM
#5
Re: How to: prevent static splitter bar from tracking ?
Thanks to all for your help !
It works very fine !
Regards,
Daniel
-
May 21st, 1999, 07:07 AM
#6
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|