Pls help me...How to load a dialog from dll and display it into child frame ?
-
Hello everyone: I want to load a dialog from dll and display it into child view. How to realize it? Please help me. Thank you. -Freehawk
Load/Create the dialog with CDialog. Now set the parent of your dialog to be child-view window, and resize the dialog accordingly. this is a semi-hack, because the way to do it is to create a window that can host another window, or what I call a 'Pane Container' and a 'Pane'. there's nothing too special about the pane, except that you set it's parent to be the container, but the container should 'remember' the pane it contains (store a ptr to it), and resize the contained pane when the container is resized, etc.
-
Load/Create the dialog with CDialog. Now set the parent of your dialog to be child-view window, and resize the dialog accordingly. this is a semi-hack, because the way to do it is to create a window that can host another window, or what I call a 'Pane Container' and a 'Pane'. there's nothing too special about the pane, except that you set it's parent to be the container, but the container should 'remember' the pane it contains (store a ptr to it), and resize the contained pane when the container is resized, etc.