I have not used dialogs nor dlls for a long time now, but I do think if you are using a dll like dcx, you can actually dynamically create dialog controls. The alternative is to use picwin (picture window/custom windows/window -p). Here is an example of what I managed to create with just picwin (no dll)