Hiding the Standard Buttons
Posted
by Zafir Anjum
on August 6th, 1998
The code below will hide the OK button. The IDs of the standard buttons are IDOK, IDCANCEL, IDHELP and ID_APPLY_NOW.
CWnd *pWnd = GetDlgItem( IDOK ); pWnd->ShowWindow( FALSE );

Comments
Destroying the HIDE Button
Posted by SweetSarah on 04/13/2006 12:44amHi all, rather than going through any long procedures just comment the following line in CPropertySheet derived class
ReplyON_COMMAND(ID_HELP, CWinApp::OnHelp)
Regards,
Sarah
Easy way of hiding default buttons from PropertySheet with out error
Posted by Legacy on 11/19/2003 12:00amOriginally posted by: S. Soundar Rajan
ReplyMost Accurate DEFINITIVE & Easy way to Hide Help Button in VC6
Posted by Legacy on 11/17/2003 12:00amOriginally posted by: Yogesh Kshatriya
The correct, defintive & easy way to hide the Help button is the one suggested by Stephane Pilote.
ReplyWhy doesn't the active page cahnge????????
Posted by Legacy on 11/30/2002 12:00amOriginally posted by: Catalin
At CPropertySheet: i don't understand why after i receive the answer ok from the sheet, get active index only retreives the index of the first tab even if i changed it while running the application.
it's like this
if (dlgNew.DoModal() == IDOK)
{
int val = dlgNew.GetActiveIndex();
......
}
and i receive only 0;
Replyhiding default buttons of property sheet.
Posted by Legacy on 10/17/2002 12:00amOriginally posted by: nilesh
u have given the code to hide the default buttons,but can u plz tell me where to write that code.
ReplyHow to i Handle the Help!!!!
Posted by Legacy on 04/12/2002 12:00amOriginally posted by: Rajesh
Hi ,
how do i handle the help in each page. for ex. i having each page in help button. If the user press the help button i want to show the message means. How i can do that?. How do i map the Help Button in the Class wizard. which message i have to handle?.
any one give a idea pl.
thanks,
ReplyRajesh. S
(rajesh_s76@hotmail.com)
how to remove the Cancel button....????
Posted by Legacy on 11/19/2001 12:00amOriginally posted by: Ganesh
In my program I want to remove(not just hiding) the Cancel button from the Property sheet so that the OK button appears on the extreem right.. How to do it..??
Any Idea..??
Thanks,
ReplyGanesh
How to stay on the same actived page after "OK" clicked (2)?
Posted by Legacy on 11/16/2001 12:00amOriginally posted by: Andreas Kops
Hi,all Gurus:
I have got the same problem.
I want to verify something after "OK" button clicked in one PropertyPage, but if the condition is not valid, I need to stay in the same actived page. However, even I did not call CPropertyPage::OnOK(),the whole propertySheet are disapeared!! It is totally different than CDialog!
Does anybody have good and simple idea to handle thai?
Thanks in advance!
Andreas
ReplyDEFINITIVE way to hide the help button
Posted by Legacy on 10/12/2001 12:00amOriginally posted by: JT
The method listed by Ed eichman does not work. It hides the "Help" button alright but if your mouse is active on the property sheet and you press the key F1, it launches the help. The only way it works is as stated by stephanie pilote..
ReplyHow to stay on the same actived page after "OK" clicked?
Posted by Legacy on 10/03/2001 12:00amOriginally posted by: James HU
Hi,all Gurus:
I want to verify something after "OK" button clicked in one PropertyPage, but if the condition is not valid, I need to stay in the same actived page. However, even I did not call CPropertyPage::OnOK(),the whole propertySheet are disapeared!! It is totally different than CDialog!
Does anybody have good and simple idea to handle thai?
Thanks in advance!
James
ReplyLoading, Please Wait ...