about IID_ICONTROLVIEW and IID_IEVENTHANDLER of kRollOverIconPushButtonBoss in c++ plug-in
I inherited from kRollOverIconPushButtonBoss because I wanted to customize the appearance of the button. So, I overrode the IID_ICONTROLVIEW interface and implemented the Draw() function like this:
class MyButtonView : public DVControlView
{
public:
MyButtonView(IPMUnknown* boss);
virtual ~MyButtonView();
virtual void Draw(IViewPort* viewPort, SysRgn updateRgn = nil);
};Everything works fine — I successfully implemented a custom-drawn button appearance.
However, the button click event stopped working.
I had to explicitly re-implement IID_IEVENTHANDLER for the button to respond to clicks again.
So my question is: why is this the case?
If I re-implement IID_ICONTROLVIEW, do I also have to re-implement IID_IEVENTHANDLER for the button to function properly?
