I want my dialog to behave like a dockable pane in MFC a ribbon based MDI application
I am creating a dialog, it’s inherited from CDialogEx
(dialog class name DockColorDlg
), and create another class (ColorDockable
) that’s inheriting from the CDockablePane
class. And in my ColorDockable
class I am creating the instanced of the DockColorDlg
(DockColorDlg m_wndDialog
).
I want my dialog to behave like a Dock able Pane. In MFC Ribbon based MDI application
I am creating a dialog, it’s inherited from CDialogEx(dialog class name DockColorDlg ) , and create another class(ColorDockable) that’s inheriting CDockablePane class. And in my ColorDockable class I am creating the instanced of the DockColorDlg (DockColorDlg m_wndDialog).
Now I am calling from my Mainfram.cpp and create the dock able window, when I am implementing this then it will work, but after few times or a few build it will not create the window