how to add Dialog box inside dockable pane in mfc application

Поділитися
Вставка
  • Опубліковано 2 січ 2025
  • In this video i am going to show you how to add/insert dialog box inside dockable pane.
    Note: if you are not able to see the content properly, please change the quality/resolution of this video

КОМЕНТАРІ • 9

  • @kiranlomate1317
    @kiranlomate1317 4 роки тому

    Can we add cmfcbutton on dockpane?

  • @Max_Stupa
    @Max_Stupa 6 років тому

    Hi, thanks for tutorial!
    I have a question about document/view architecture and dockable pane.
    How to change document via pane?
    My main problem, obtaining pointer on current document)

  • @ayushswiss
    @ayushswiss 7 років тому

    I have another question brother.
    Suppose we have a dialog box. And it's being created. Now we want to make another instance of same dialog box class. Is it possible.
    I tried but it gave exception.

  •  5 років тому

    Hi. Thank you for your sharing. I have a problem with this demo. When I resize docable pane. My dialog is not updated. I have used update windows, redraw windows, invalidate for dialog. But it's not working. Please support for me this one. Thank you so much

    • @betterfixparser2555
      @betterfixparser2555 5 років тому +1

      You'll have to catch the event of WM_SIZE in the CDockPaneExp. Then you need to move the dialog to fill the dimensions of the pane.

    •  5 років тому

      @@betterfixparser2555 Thank you so much. I have done it

  • @ayushswiss
    @ayushswiss 7 років тому

    Hello Bro, Thanks for this solution, But i am facing a problem. My dialog box is coming outside as a separate window.

    • @dharmendrachaudhary3895
      @dharmendrachaudhary3895  7 років тому

      Please check the size(width and height) of the dockable pane is same dialog box

    • @ayushswiss
      @ayushswiss 7 років тому +1

      dharmendra chaudhary Thanks for the reply!
      It was fixed already. It worked only after i manually assign the parent of this dialog.
      Dlg.setparent(this);