How to change split window's size dynamicly?

  • Ivan.Zhang

    Ivan.Zhang - 2011-01-18

    Hi, David,
    From splitter sample, I try to change ListDocker's size like this:
            m_pDockTree->Dock(m_pDockList, dwStyle | DS_DOCKED_RIGHT);

    When the ListDocker is docked already, I execute the above code, strange behaviour will appear when dragging the splitbar.
    If I hide the ListDocker at first( m_pDockList->Hide(); ), it works well.
    Is this a bug?
    Can I change the docker's size without hiding it at first ?

    Thank you.

  • David

    David - 2011-01-21


    Currently the docking software doesn't cater for resizing a docked docker (except by dragging the splitter bar of course). The SetDockSize function wasn't intended for this purpose when it was written. It was intended for internal use by CDocker (perhaps it should have been made private).

    Anyway I'll add support for dynamically resizing a docked docker in the next version. I'll post another reply to this forum when the code is written.

    Best regards,

  • Ivan.Zhang

    Ivan.Zhang - 2011-01-21

    Hi, David
    Thank you very much, looking forward the new version.

  • David

    David - 2011-04-02


    Just a quick note to advise that I've submitted an update which now supports dynamic resizing of Dockers using the SetDockSize function. The latest code can be downloaded with Tortoise SVN.

    Best regards,

  • Ivan.Zhang

    Ivan.Zhang - 2011-04-02

    Thank you for the update :)


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks