[Webinar] Streamline your web hosting managementRegister Today

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 384
  • Last Modified:

Property pages in Wizard mode

   I am having an application in which I am displaying a set of property pages as a Wizard. I am having the 'Modal' mode of display. There are Five pages altogether. I have a specific need to display the fourth page as a Modeless wizard page, so that user can do some operations on the document. I am doing this in the following way, which I think is not correct.
  In the third page, on OnNext(), I am getting the parent CFrameWnd object and calling EnableWidow(TRUE) and getting control of my window. Then later in the fourth wizard page, I am calling EnableWindow(FALSE). This works, but I am facing certain other seriour problems. MFC is not sending any Update Command handlers for the toolbar buttons. The buttons states at the time I started the wizard remains the same(because the wizard is basically modal), what ever operations I do. But menu Update Commad handler messages are being done as I bring down the menus.
   Is the way I am making the wizard page modeless is wrong. Can you give a better solution to do make one page modeless OR how do I forcibly make MFC update my toolbar buttons in this condition.
Thank You
1 Solution
Hi !!
If u r os is NT then please use PostMessage() to update the toolbars because its a hell lot of problems in NT.
boby_alexAuthor Commented:
How can you use PostMesage for ON_UPDATE_COMMAND_UI macros?
Use the Create member function of CPropertySheet to create a modeless property sheet.

For your application, create the third page alone as a different modeless sheet and provide the Next, Back buttons so that the user does not detect any change and is able to make changes on your main frame window. After he's done with the changes destroy the modeless window.

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now