how to correctly add CDockablePane containing a Cview to a CMDIChildWndEx? RRS feed

  • Question

  • I've created a github repository with the example I'm trying to replicate:https://github.com/rcitaliano/TestDockChild

    I'm trying to create a CDockablePane, that contains a CView derived class, and then dock the CDockablePane to a CMDIChildWndEx (child frame) instead of the CMDIFrameWndEx (main frame).

    I've done this because in a "real" project I'm trying to do the same thing and it's not working.

    In the real project, when I try to close the child frame, the app crashes giving a heap corruption exception, while in the example I've created the app doesn't crashes when you close the child frame, but the view inside doesn't work correctly because it's not refreshing.

    I am at a loss here, I have tried lots of stuff but nothing worked, and I couldn't find any official online infos from microsoft.

    has anyone any clue about this?

    • Edited by rcitaliano Tuesday, May 16, 2017 9:09 AM
    Tuesday, May 16, 2017 9:08 AM

All replies

  • Hi. Do you have a .sln file fr your test project from GitHub ?
    Monday, May 29, 2017 7:09 AM