Click to See Complete Forum and Search --> : Property Sheet's Buttons.


Paul Voight
May 3rd, 1999, 12:53 AM
Is there a way to rename the apply button on a Property Sheet. I would like to rename Apply button%2

Troy T
May 3rd, 1999, 05:29 PM
I haven't tried the code I'm putting here, but what you're doing would be something like this:

// Assuming that you are accessing from the property sheet itself
CWnd* pWnd = GetDlgItem(ID_APPLY_NOW);
pWnd->SetWindowText(_T("MyLoadButton"));

// Now override the OnApply virtual function on your specific property page
// to accomodate this functionality when you press the button.



The code above is un-tested, but with some slight modifications (or none at all) it should work for you. Good luck.

- Troy

Troy T
May 3rd, 1999, 05:37 PM
Another solution is to hide the button entirely, and add one of your own onto the CPropertySheet derived class. There is already an article online at CodeGuru.com listed here:

http://www.codeguru.com/propertysheet/add_control_to_sheet.shtml

Good luck!

- Troy