Is there a way to rename the apply button on a Property Sheet. I would like to rename Apply button%2
Printable View
Is there a way to rename the apply button on a Property Sheet. I would like to rename Apply button%2
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
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/propertyshee...to_sheet.shtml
Good luck!
- Troy