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. Cancel in Dialog box

Cancel in Dialog box

Scheduled Pinned Locked Moved C / C++ / MFC
help
3 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.
  • S Offline
    S Offline
    Subhashree
    wrote on last edited by
    #1

    Sir, I have some 12 dialog boxes called in sequence.There are situations where I call a dialog box from a function.In that case if I choosing the cancel button eventhough that dialog box hides since Iam calling it in functions it proceeds to the other dialog boxes.When I give cancel in the dialog box I want the entire process to be stopped and I want to start from the first.How can we achieve this.Please kindly help me. Thanking you. regards, Subhashree

    C U 2 Replies Last reply
    0
    • S Subhashree

      Sir, I have some 12 dialog boxes called in sequence.There are situations where I call a dialog box from a function.In that case if I choosing the cancel button eventhough that dialog box hides since Iam calling it in functions it proceeds to the other dialog boxes.When I give cancel in the dialog box I want the entire process to be stopped and I want to start from the first.How can we achieve this.Please kindly help me. Thanking you. regards, Subhashree

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      The button you press is returned from DoModal. Check if it's IDCANCEL, and if it is, start again. From memory there is something on MSDN about building wizard type apps, I don't remember anything else, but you should search MSDN, it could be helpful. Christian Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002 During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002

      1 Reply Last reply
      0
      • S Subhashree

        Sir, I have some 12 dialog boxes called in sequence.There are situations where I call a dialog box from a function.In that case if I choosing the cancel button eventhough that dialog box hides since Iam calling it in functions it proceeds to the other dialog boxes.When I give cancel in the dialog box I want the entire process to be stopped and I want to start from the first.How can we achieve this.Please kindly help me. Thanking you. regards, Subhashree

        U Offline
        U Offline
        udayGovekar
        wrote on last edited by
        #3

        When you click on cancel button, it returns IDCANCEL, check this value using coditional statements, if it is then come out of loop/application/return to the begining

        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