Disabling Cancel Button in Property pages

Hi ,

  I know to disable the Back button in property pages using the API function PropSheet_SetWizButtons.

  But I would like to know how to disable the cancel button.

  Also could you tell me is there a way to remove the buttons from the property pages ( Making it disappear totally).

Thanks

Shiva

Shiva@indusaglobal.com
nsivatgAsked:
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.

inprasCommented:
How about
PropSheet_CancelToClose( )
 
0
bhatCommented:
Hi

In the init dialog of each property page add  
PropSheet_CancelToClose( )

In the resource editor don't add any button for each page
0

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
nsivatgAuthor Commented:
Thanks for your solution.

But is there a way to remove the button from the property pages instead of just disabling?

Regards

Shiva

Shiva@indusaglobal.com
0
nsivatgAuthor Commented:
I got the solution and it is as follows.

ShowWindow(FindWindowEx(sPropertySheet,NULL,"Button","Cancel"),SW_HIDE);
                              ShowWindow(FindWindowEx(sPropertySheet,NULL,"Button","< &Back"),SW_HIDE);
                  

Shiva

Shiva@indusaglobal.com            
0
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
Microsoft Development

From novice to tech pro — start learning today.