You could always enumerate all controls then get text info for your OK button caption then use SendMessage to send it WM_DISABLE, lol. I joke, that's a horrible solution.

I believe mitrmkar is implying you subclass CPropertySheet. The example he used was a subclassed constructor called "CMyPropertySheet". With a subclass you should be able to pass and manipulate whatever data you need. If the OK button is not implemented within that CPropertySheet, then really the GetDlgItem(IDOK)->EnableWindow(FALSE); call should be made in the parent (CPropertyPage?). Hope that helps.

Thanks for reply..
I tried out the code as mitrmkar said before..
I got build no error..
during running program..
when it come to this line "getDlgItem(IDOK)->EnableWindow(FALSE);"..
a application error prompt out..
before my oPropSheet's m_hWnd = NULL..

You could very easily arrange so that you'd have a class derived from CPropertySheet, in which case the above code snippet would do the job. I think that would be the 'most natural' way of doing what you are trying to accomplish.