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. child window

child window

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.
  • A Offline
    A Offline
    Aint
    wrote on last edited by
    #1

    Hi. I have created a MDI with CFormview. I also have created a form in which I want to call from the menu. How do I call this form?

    N 1 Reply Last reply
    0
    • A Aint

      Hi. I have created a MDI with CFormview. I also have created a form in which I want to call from the menu. How do I call this form?

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

      Hi, take a look in the answers I wrote here: http://www.codeproject.com/script/comments/forums.asp?msg=2045188&forumid=1647&XtraIDs=1647&sd=21+Feb+2007&ed=22+May+2007&author=Nelek&stype=1#xx2045188xx[^] and here: http://www.codeproject.com/script/comments/forums.asp?msg=2029429&forumid=1647&ForumID=1647&XtraIDs=1647&author=Nelek&sd=21%20Feb%202007&ed=22%20May%202007&stype=1&Page=3#xx2029429xx[^] It can maybe help you. If not... explain yourself better please.

      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?

      A 1 Reply Last reply
      0
      • N Nelek

        Hi, take a look in the answers I wrote here: http://www.codeproject.com/script/comments/forums.asp?msg=2045188&forumid=1647&XtraIDs=1647&sd=21+Feb+2007&ed=22+May+2007&author=Nelek&stype=1#xx2045188xx[^] and here: http://www.codeproject.com/script/comments/forums.asp?msg=2029429&forumid=1647&ForumID=1647&XtraIDs=1647&author=Nelek&sd=21%20Feb%202007&ed=22%20May%202007&stype=1&Page=3#xx2029429xx[^] It can maybe help you. If not... explain yourself better please.

        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?

        A Offline
        A Offline
        Aint
        wrote on last edited by
        #3

        Hi. Sorry if I didn't state the problem clearly. I have a similar problem. I created MDI derived from CFormview. Now, I want to have a new view which I have managed to create by Insert -> Resource -> Dialog -> IDD_FORMVIEW. I have changed the ID to IDD_GRAPH. MDI created 2 menus called IDR_MAINFRAME and IDR_CVTYPE. I have modified IDR_CVTYPE to create another menu entry called 'View'. Under 'View', there is a submenu called 'Graph'. When the user click 'Graph', I want a child window to open with the new view (IDD_GRAPH). The problem is what should I code for the new view (IDD_GRAPH) to open when 'Graph' is clicked?

        N 1 Reply Last reply
        0
        • A Aint

          Hi. Sorry if I didn't state the problem clearly. I have a similar problem. I created MDI derived from CFormview. Now, I want to have a new view which I have managed to create by Insert -> Resource -> Dialog -> IDD_FORMVIEW. I have changed the ID to IDD_GRAPH. MDI created 2 menus called IDR_MAINFRAME and IDR_CVTYPE. I have modified IDR_CVTYPE to create another menu entry called 'View'. Under 'View', there is a submenu called 'Graph'. When the user click 'Graph', I want a child window to open with the new view (IDD_GRAPH). The problem is what should I code for the new view (IDD_GRAPH) to open when 'Graph' is clicked?

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

          Hi, have you read the links I gave you??? I have there posted how to create/open/manage the new views. I have a CScrollView to have the project, and when the user makes double click in one element. It then comes the new CFormView in another window to allow the entry of advanced parameters for this concrete element. I have 4 templates (1 CScroll, and 3 different CFormViews) but up to 48 new windows are possible (one per each possible element). Take a look on the code of function "CreateOrActivateFrame ()". This is what I use to open or set focus to an already opened "secondary" view.

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