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.