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. Four dialogs

Four dialogs

Scheduled Pinned Locked Moved C / C++ / MFC
c++tutorial
2 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.
  • E Offline
    E Offline
    emrosa
    wrote on last edited by
    #1

    Sorry for this, but I do have no experience in visual c++. I want to build an interface with four dialog windows. I know how to start the first dialog. But then, the main dialog has three buttons (A,B,C). When clicking on A, the main dialog window should be hidden an a new dialog window (WA) appears, after working wiht WA and click (RETURN TO MAIN) window WA disappears, and the main window appears. The same thing happens with buttons B and C. If somebody can give me a hand I will appreciate it. Thanks, Eric Manuel Rosales Pena Alfaro PhD student Unversity of Essex Wivenhoe Park Colchester, CO4 3SQ Essex, Uk email: emrosa@essex.ac.uk tel: +44-01206-87311

    J 1 Reply Last reply
    0
    • E emrosa

      Sorry for this, but I do have no experience in visual c++. I want to build an interface with four dialog windows. I know how to start the first dialog. But then, the main dialog has three buttons (A,B,C). When clicking on A, the main dialog window should be hidden an a new dialog window (WA) appears, after working wiht WA and click (RETURN TO MAIN) window WA disappears, and the main window appears. The same thing happens with buttons B and C. If somebody can give me a hand I will appreciate it. Thanks, Eric Manuel Rosales Pena Alfaro PhD student Unversity of Essex Wivenhoe Park Colchester, CO4 3SQ Essex, Uk email: emrosa@essex.ac.uk tel: +44-01206-87311

      J Offline
      J Offline
      John R Shaw
      wrote on last edited by
      #2

      When you press the button but before you show the new dialogbox call ShowWindow(SW_HIDE) and when the new dialogbox closes (returns control) then call ShowWindow(SW_SHOW). That should do it, but you may have to create the new dialogbox with a NULL parent window for it to work. Trust in the code Luke. Yea right!

      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