Subclass APPLY button in CPropertySheet
Posted on 2001-07-04
I've created property sheet using CPropertySheet. I want to add icons to the buttons on it (OK,Cancel,Apply,Help)
I am using a CButton derived class to do it. I've created 4 variables called m_BOK,m_BCancel,m_BApply,m_BHelp. In my OnInitDialog function, I subclass the variables with the ID of the property sheet buttons. When I call SetModified(), the Apply button get enabled and when I click on it, it loses it's icon and returns to a regular Apply button. I don't know how to overide it. I've tried to subclass it again after each button click, but it still don't work. What should I do ?