This project is read-only.

wpf MDI interface calls CDialog

Aug 26, 2011 at 7:10 AM

Now I can use sample code from to create the MDI interface, and I can get the dockable window, like Visual Studio interface.

I use the following code as a wrap class to call an unmaged dll. In this dll, there is CDialog window in MFC. I can see this CDialog window, when I click a button in the modified WPF GUI based on the sample code mentioned above. 

But the question is : how to make the popup CDialog window as a dockable window in the WPF GUI? Any ideas about it? Thanks.

public class wrapClass



        [DllImport("a.dll", CharSet = CharSet.Auto)]

        public static extern int GetSomething(IntPtr ptr);