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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Dialog as child on a CView-dialog // HELP REALLY NEEDED

Dialog as child on a CView-dialog // HELP REALLY NEEDED

Scheduled Pinned Locked Moved C / C++ / MFC
questionhelp
6 Posts 3 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.
  • K Offline
    K Offline
    klm
    wrote on last edited by
    #1

    How can i show a dialog resoucre on a CView-dialog at runtime? I would show the child dialog when a button is clicked on the CView-dialog. I would place static text controls on the child dialog, and write to these from the CView-dialog.

    R RaviBeeR 2 Replies Last reply
    0
    • K klm

      How can i show a dialog resoucre on a CView-dialog at runtime? I would show the child dialog when a button is clicked on the CView-dialog. I would place static text controls on the child dialog, and write to these from the CView-dialog.

      R Offline
      R Offline
      redeemer
      wrote on last edited by
      #2

      If there somewhere is a parameter/class item with the name lpTemplate, try setting it to MAKEINTRESOURCE() where is the name of the dialog you want to use.

      K 1 Reply Last reply
      0
      • R redeemer

        If there somewhere is a parameter/class item with the name lpTemplate, try setting it to MAKEINTRESOURCE() where is the name of the dialog you want to use.

        K Offline
        K Offline
        klm
        wrote on last edited by
        #3

        I don't understand what you wrote! Can you give me a little code example?

        1 Reply Last reply
        0
        • K klm

          How can i show a dialog resoucre on a CView-dialog at runtime? I would show the child dialog when a button is clicked on the CView-dialog. I would place static text controls on the child dialog, and write to these from the CView-dialog.

          RaviBeeR Offline
          RaviBeeR Offline
          RaviBee
          wrote on last edited by
          #4

          Use CFormView. /ravi "There is always one more bug..." http://www.ravib.com ravib@ravib.com

          K 1 Reply Last reply
          0
          • RaviBeeR RaviBee

            Use CFormView. /ravi "There is always one more bug..." http://www.ravib.com ravib@ravib.com

            K Offline
            K Offline
            klm
            wrote on last edited by
            #5

            What do you mean with "Use CFormView"? Can you please give me a code example.

            RaviBeeR 1 Reply Last reply
            0
            • K klm

              What do you mean with "Use CFormView"? Can you please give me a code example.

              RaviBeeR Offline
              RaviBeeR Offline
              RaviBee
              wrote on last edited by
              #6

              Unfortunately, it's hard to explain this with a code example in a reply. But if you don't need document support and just want to create a simple dialog based app, see this tutorial. /ravi "There is always one more bug..." http://www.ravib.com ravib@ravib.com

              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