Hi;
I want to change the text on the OK button in a Property Sheet. How can i do that?
Thanks
Steve White
Printable View
Hi;
I want to change the text on the OK button in a Property Sheet. How can i do that?
Thanks
Steve White
//You have to do the following
//1) derive CMyPropertySheet from CPropertySheet;
//2) Use CMyPropertySheet in your application instead with following modification.
//3) Using class wizard, override the OnInitDialog() as below.
BOOL CMyProgSheet::OnInitDialog()
{
BOOL bResult = CPropertySheet::OnInitDialog();
// TODO: Add your specialized code here
GetDlgItem(IDOK)->SetWindowText("Hello");
return bResult;
}
//this changes OK buttons text to "hello".
- qed.