CDialog
-
I have a CDialog base aplication and a button and i want to start (DoModal) but is not working for CFormView !? How can i start a CFormView ??from a CButton !
Bravoone
-
I have a CDialog base aplication and a button and i want to start (DoModal) but is not working for CFormView !? How can i start a CFormView ??from a CButton !
Bravoone
CFormView-based (SDI/MDI) and dialog-based refer to the architecture of the app - an app can be one or the other, but not both. You can display a dialog from a CFormView-based app, but you can't display a CFormView from a dialog-based app. If you had a separate CFormView-based app, then of course you could start it from a dialog-based app - is that what you want to do?
Best wishes, Hans
[CodeProject Forum Guidelines] [How To Ask A Question] [My Articles]
-
CFormView-based (SDI/MDI) and dialog-based refer to the architecture of the app - an app can be one or the other, but not both. You can display a dialog from a CFormView-based app, but you can't display a CFormView from a dialog-based app. If you had a separate CFormView-based app, then of course you could start it from a dialog-based app - is that what you want to do?
Best wishes, Hans
[CodeProject Forum Guidelines] [How To Ask A Question] [My Articles]
I have a CDialog base aplication and a dialog CFormView base in the same project from CDialog i want to start CFormView HOW ?
Bravoone
-
I have a CDialog base aplication and a dialog CFormView base in the same project from CDialog i want to start CFormView HOW ?
Bravoone
I have explained how to open a CFormView from a MDI, search in forum posts with autor (Nelek) and keywords (Child Window). Part of the code will be usefull. But you will have problems with some parts because you don't have Doc/View relationship. But at least you have an idea about how it should be made.
Greetings. -------- M.D.V. If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
-
I have a CDialog base aplication and a dialog CFormView base in the same project from CDialog i want to start CFormView HOW ?
Bravoone
Bravoone_2006 wrote:
I have a CDialog base aplication and a dialog CFormView base in the same project from CDialog i want to start CFormView HOW ?
It sounds as though you want to start one application from within another. Correct? If so, check out
CreateProcess()
.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne