How can I override CPropertySheet::RemovePage(int nPage) in a derived class?
-
I have a CPropertySheet derived class; I need to implement the CPropertySheet::RemovePage(int nPage) Would you tell me how I can do that?
-
I have a CPropertySheet derived class; I need to implement the CPropertySheet::RemovePage(int nPage) Would you tell me how I can do that?
I will like to believe u probably need to do some things before removing the page. Try implementing these 2 mtds: void CMyPropertySheet::RemovePage(CPropertyPage *pPage) { //do ur stuff... //...... //finally, call the parent mtd... CPropertySheet::RemovePage(pPage); } void CMyPropertySheet::RemovePage(int nPage ) { //do ur stuff... //...... //finally, call the parent mtd... CPropertySheet::RemovePage(nPage ); } Goodluck! What would life be without programmers and salesmen?
-
I will like to believe u probably need to do some things before removing the page. Try implementing these 2 mtds: void CMyPropertySheet::RemovePage(CPropertyPage *pPage) { //do ur stuff... //...... //finally, call the parent mtd... CPropertySheet::RemovePage(pPage); } void CMyPropertySheet::RemovePage(int nPage ) { //do ur stuff... //...... //finally, call the parent mtd... CPropertySheet::RemovePage(nPage ); } Goodluck! What would life be without programmers and salesmen?
:)Thanks for the reply! I've done the same but the problem is that it throws an exception, I think it's due to another code I've put in the caller method.