You can use the
CreateWindow
API to create a window, dialog and controls.
Every thing is a window in Windows, unlike other OSs.
I've done just that in this article -
Mousey! Roll Over and Park[
^]
The article doesn't use MFC, but the same can be done using the
CWnd::Create
method, which the
CFormView
class indirectly inherits.