You may find this post helpful. See attachement.

However this is fairly old project created using VS 6.0.

You will have to make sure that child view has following styles set:
Extended WS_EX_CONTROLPARENT. This will prevent dialog from looping endlessly trying to find last control and will render dialog unresposive to user input.
DS_CONTROL See MSDN