CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 1999
    Location
    NH, USA
    Posts
    47

    Creating non-sizeable splitter windows

    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?


  2. #2
    Join Date
    Apr 1999
    Posts
    48

    Re: Creating non-sizeable splitter windows

    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



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