CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6
  1. #1
    Join Date
    May 1999
    Posts
    25

    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



  2. #2
    Join Date
    May 1999
    Location
    ALABAMA, USA
    Posts
    9,917

    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.

  3. #3
    Join Date
    May 1999
    Posts
    25

    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



  4. #4
    Join Date
    May 1999
    Posts
    116

    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.


  5. #5
    Join Date
    May 1999
    Posts
    25

    Re: How to: prevent static splitter bar from tracking ?

    Thanks to all for your help !

    It works very fine !

    Regards,
    Daniel



  6. #6
    Join Date
    May 1999
    Posts
    25

    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
  •  





Click Here to Expand Forum to Full Width

Featured