CPropertySheet
-
I have a wizard derived from propertysheet. It is a modal dialog which is invoked using DoModal(). Immediately after the wizard is displayed, I want to popup a dialog. But i'm not able to track the exact point after the wizard is shown. In which method of the wizard can i do this ??? Thanx for ur help.
-
I have a wizard derived from propertysheet. It is a modal dialog which is invoked using DoModal(). Immediately after the wizard is displayed, I want to popup a dialog. But i'm not able to track the exact point after the wizard is shown. In which method of the wizard can i do this ??? Thanx for ur help.
-
I have a wizard derived from propertysheet. It is a modal dialog which is invoked using DoModal(). Immediately after the wizard is displayed, I want to popup a dialog. But i'm not able to track the exact point after the wizard is shown. In which method of the wizard can i do this ??? Thanx for ur help.
At the end of the sheet's
OnInitDialog()
method, you'll need to post a user-defined message. In the handler of that message, instantiate the other dialog and call itsDoModal()
method. You cannot do the latter directly from the sheet'sOnInitDialog()
method.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
-
I have a wizard derived from propertysheet. It is a modal dialog which is invoked using DoModal(). Immediately after the wizard is displayed, I want to popup a dialog. But i'm not able to track the exact point after the wizard is shown. In which method of the wizard can i do this ??? Thanx for ur help.
If you use a modeless dialog box you can create it and show it within the OnInitDialog method of the wizard. Basic idea 1) Create dialog 2) Call ShowWindow for the wizard (Ensures that the wizard is shown) 3) Call ShowWindow for the dialog (Shows the modeless dialog) before returning from the OnInitDialog of the wizard. Ant. I'm hard, yet soft.
I'm coloured, yet clear.
I'm fruity and sweet.
I'm jelly, what am I? Muse on it further, I shall return! - David Walliams (Little Britain) -
If you use a modeless dialog box you can create it and show it within the OnInitDialog method of the wizard. Basic idea 1) Create dialog 2) Call ShowWindow for the wizard (Ensures that the wizard is shown) 3) Call ShowWindow for the dialog (Shows the modeless dialog) before returning from the OnInitDialog of the wizard. Ant. I'm hard, yet soft.
I'm coloured, yet clear.
I'm fruity and sweet.
I'm jelly, what am I? Muse on it further, I shall return! - David Walliams (Little Britain)Thanx for all ur responses. Its working now !!! I tried first to post a user defined message from the sheet's InitDialog. But that did not work as expected. Then i tried the same from the InitDialog of the property page. And it worked just as required. Thanx again.