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. New to MDI: dialogs

New to MDI: dialogs

Scheduled Pinned Locked Moved C / C++ / MFC
csharpvisual-studiodesignalgorithmshelp
4 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.
  • C Offline
    C Offline
    Crazy Joe Devola
    wrote on last edited by
    #1

    Hi I've never wrote an MDI app so this will probably sound like a silly question: I am using Visual Studio 6. I want to write an MDI program where the documents are dialogs that I design - with buttons, lists, edit boxes, combos etc. I have no clue how to do that. I've been searching for examples but could not find any. I tried creating an MDI app and then desinged dialog. Using the class wizard I tried to create a class for that dialog, derived from CView. I then changes the call to the RUNTIME_CLASS macro to use my new class, but I am getting compilation error. thanks!

    D A V 3 Replies Last reply
    0
    • C Crazy Joe Devola

      Hi I've never wrote an MDI app so this will probably sound like a silly question: I am using Visual Studio 6. I want to write an MDI program where the documents are dialogs that I design - with buttons, lists, edit boxes, combos etc. I have no clue how to do that. I've been searching for examples but could not find any. I tried creating an MDI app and then desinged dialog. Using the class wizard I tried to create a class for that dialog, derived from CView. I then changes the call to the RUNTIME_CLASS macro to use my new class, but I am getting compilation error. thanks!

      D Offline
      D Offline
      Dreamz
      wrote on last edited by
      #2

      You can create your view derived from CFormView, where you can place the controls as you do in dialogs.

      1 Reply Last reply
      0
      • C Crazy Joe Devola

        Hi I've never wrote an MDI app so this will probably sound like a silly question: I am using Visual Studio 6. I want to write an MDI program where the documents are dialogs that I design - with buttons, lists, edit boxes, combos etc. I have no clue how to do that. I've been searching for examples but could not find any. I tried creating an MDI app and then desinged dialog. Using the class wizard I tried to create a class for that dialog, derived from CView. I then changes the call to the RUNTIME_CLASS macro to use my new class, but I am getting compilation error. thanks!

        A Offline
        A Offline
        Arman S
        wrote on last edited by
        #3

        Hi, I am using Visual Studio 6. I want to write an MDI program where the documents are dialogs that I design - with buttons, lists, edit boxes, combos etc. Actually, documents cannot be dialogs. Moreover this statement makes no sense. Documents are to store data that would be viewed by Views. And saying document you understand a class derived from CDocument. In other words, you might want your views contain dialog controls. It is possible though in case you have a CView derived class, you will not be able yo perform WYSIWYG. So, you may perform dialog templates with the necessary controls on it and create the dialog object as a child control (dialog) for the views. Or something may be done with CFormView derived classes. -- ====== Arman

        1 Reply Last reply
        0
        • C Crazy Joe Devola

          Hi I've never wrote an MDI app so this will probably sound like a silly question: I am using Visual Studio 6. I want to write an MDI program where the documents are dialogs that I design - with buttons, lists, edit boxes, combos etc. I have no clue how to do that. I've been searching for examples but could not find any. I tried creating an MDI app and then desinged dialog. Using the class wizard I tried to create a class for that dialog, derived from CView. I then changes the call to the RUNTIME_CLASS macro to use my new class, but I am getting compilation error. thanks!

          V Offline
          V Offline
          vikas amin
          wrote on last edited by
          #4

          Microsoft has done a great deal of work to help developers but should have added a simple learning structure to it. U can search the MSDN for and example project whose folder name is viewex. U will get a hint for what u need this is a simple example for a class dervied from CFormView. Thank you :cool: Vikas Amin Embin Technology Bombay vikas.amin@embin.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