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. Prevent closing in CPropertySheet

Prevent closing in CPropertySheet

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestion
1 Posts 1 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.
  • Z Offline
    Z Offline
    Zero_divide_1
    wrote on last edited by
    #1

    Okay, I'm having this problem and don't want to have to do too much in order to get it to work properly. I have a wizard set up using CPropertySheet. There is a property page that is shown that begins processing information and displaying its progress on the shown CPropertyPage, but when the user presses cancel I want the overrided CPropertyPage method OnCancel to be called so it can tell the CPropertySheet parent to switch to the appropriate error page (lets say when its processing and the user presses cancel, I want it to kill the thread processing the data (got it to do that), and switch pages automatically telling the user that the processing wasn't completed because it was canceled). I know that when I click the "Cancel" button on the sheet that it fires the OnCancel method, but even if I prevent the following statement from executing, it still closes the window: CPropertyPage::OnCancel(); How do I stop the sheet window from closing when I press Cancel and do what I tell it in my overrided OnCancel method?

    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