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. Dialog

Dialog

Scheduled Pinned Locked Moved C / C++ / MFC
question
4 Posts 2 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.
  • M Offline
    M Offline
    macmac38
    wrote on last edited by
    #1

    Hello, how can i embbed a dialog in a my mainframe window? Thanks, Mark

    M 1 Reply Last reply
    0
    • M macmac38

      Hello, how can i embbed a dialog in a my mainframe window? Thanks, Mark

      M Offline
      M Offline
      Martyn Pearson
      wrote on last edited by
      #2

      If you mean in the main client area, check out CFormView. When you run Appwizard, on the page towards the end (last or last but one) where it lists the classes that will be created, select your view class and select CFormView as the base class. If you want to add a dialog as a toolbar, see the documentation for CDialogBar. Hope this help!

      M 1 Reply Last reply
      0
      • M Martyn Pearson

        If you mean in the main client area, check out CFormView. When you run Appwizard, on the page towards the end (last or last but one) where it lists the classes that will be created, select your view class and select CFormView as the base class. If you want to add a dialog as a toolbar, see the documentation for CDialogBar. Hope this help!

        M Offline
        M Offline
        macmac38
        wrote on last edited by
        #3

        Yep,in the client area. You mean with the class-wizard? I can't find the option there to change the base class.. ? Thanks, Mark

        M 1 Reply Last reply
        0
        • M macmac38

          Yep,in the client area. You mean with the class-wizard? I can't find the option there to change the base class.. ? Thanks, Mark

          M Offline
          M Offline
          Martyn Pearson
          wrote on last edited by
          #4

          No, in the App Wizard, when you first create the application. If you are doing it retrospectively, the best thing to do is to create a new project and then work out the differences in the generated code (changes will be mainly to the view and resources, but also possibly to the doc), merging the code into your existing project.

          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