Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. CDialog

CDialog

Scheduled Pinned Locked Moved C / C++ / MFC
question
5 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    Bravoone_2006
    wrote on last edited by
    #1

    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

    H 1 Reply Last reply
    0
    • B Bravoone_2006

      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

      H Offline
      H Offline
      Hans Dietrich
      wrote on last edited by
      #2

      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]

      B 1 Reply Last reply
      0
      • H Hans Dietrich

        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]

        B Offline
        B Offline
        Bravoone_2006
        wrote on last edited by
        #3

        I have a CDialog base aplication and a dialog CFormView base in the same project from CDialog i want to start CFormView HOW ?

        Bravoone

        N D 2 Replies Last reply
        0
        • B Bravoone_2006

          I have a CDialog base aplication and a dialog CFormView base in the same project from CDialog i want to start CFormView HOW ?

          Bravoone

          N Offline
          N Offline
          Nelek
          wrote on last edited by
          #4

          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?

          1 Reply Last reply
          0
          • B Bravoone_2006

            I have a CDialog base aplication and a dialog CFormView base in the same project from CDialog i want to start CFormView HOW ?

            Bravoone

            D Offline
            D Offline
            David Crow
            wrote on last edited by
            #5

            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

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups