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
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
System Programming

From novice to tech pro — start learning today.