I would ask for your opinion:
observing an application as ResEdit I was wondering how is possible to obtain,
inside a window, a dialog preview (and many other controls) with the
drag and drop support.
In other word, what is the best way to developing (in Win32) a visual resource application?
Thanks for the tips and especially thanks for your great library!
When we're looking to emulate what other applications do, its a good idea to examine these applications in a utility like Microsoft's Spy++ to see the types of windows used and how they are arranged. When I run Spy++ on ResEdit and look at what a dialog resource looks like, I note that it actually creates the dialog along with its controls in the view window.
To do this ourselves we would need to create the dialog template in memory and then create the dialog from the dialog template. To see an example creating a dialog from a template, refer to Win32++'s CTab::ShowListDialog.
The hard part here is generating the dialog template itself. The following CodeProject articles might help to get you started:
Also googling terms like DialogBoxIndirect reveals hits like:
Hope this helps,