Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to disable all buttons in a wizard based property sheet?

306 views
Skip to first unread message

Someone

unread,
May 21, 2001, 7:21:50 PM5/21/01
to
Hi,

I am using property sheet in wizard mode. I need to disable all
buttons(Back, Next, Cancel) for few seconds. Is there any easier way?

Radha

Ajay Kalra

unread,
May 21, 2001, 8:36:28 PM5/21/01
to
Enumerate all its child windows and use EnableWindow() on each of these.

--
Ajay Kalra [MVP - VC++]
ajay...@yahoo.com

Note: Please post all replies to newsgroup only.

"Someone" <som...@yahoo.com> wrote in message
news:eq9TRzk4AHA.2008@tkmsftngp03...

Billy

unread,
May 22, 2001, 2:59:05 AM5/22/01
to
CPropertySheet::SetWizardButtons

Call this member function to enable or disable the Back, Next, or Finish
button in a wizard property sheet.

Also you can get the button handle by calling GetDlgItem and enable/disable
them by calling EnableWindow.


Someone

unread,
May 22, 2001, 10:04:25 PM5/22/01
to
How can I disable wizard buttons using CPropertySheet::SetWizardButtons()?
I guess it changes what button we need and whether finish should be disabled
or not.

If I am planning to use GetDlgItem(), how will I get Ids of button controls?

Thanks for your reply,
Someone

"Billy" <zhy...@microsoft.com> wrote in message
news:9xX4Azo...@cppssbbsa01.microsoft.com...

Someone

unread,
May 22, 2001, 10:05:14 PM5/22/01
to
Can you please tell me how to enumerate [Back], [next], [cancel] buttons?

Thanks,
Someone.

"Ajay Kalra" <ajay...@yahoo.com> wrote in message
news:OSkz3al4AHA.1644@tkmsftngp04...

Billy

unread,
May 22, 2001, 11:47:14 PM5/22/01
to
Please refer to msdn CPropertySheet::SetWizardButtons for how to use it.

As for the button id, they are predefined.
ID_WIZNEXT
ID_WIZBACK
ID_WIZFINISH

The following article is helpful.

HOWTO: How to Add the Finish Button to a Wizard Property Sheet
ID: Q143210

Someone

unread,
May 23, 2001, 2:09:06 PM5/23/01
to
I read MSDN Help for CPropertySheet::SetWizardButtons. Still I am missing
the point how I can disable/enable next,back, cancel buttons. Using
SetWizardButtons(), I can disable/enable finish button, not other buttons.

Artcile Q143210 helped me. I used GetDlgItem() to disable buttons.

Thanks for your help,
Someone.

"Billy" <zhy...@microsoft.com> wrote in message

news:Ssqddsz...@cppssbbsa01.microsoft.com...

0 new messages