Since it's the class IGraphics that has the function OnMouseDblClick, the idea would be creating an IGraphics2 class which would inherit from IGraphics and then override OnMouseDblClick in a way that would serve my purposes, correct?
I have been trying to do that unsuccessfully. Because when I do something like:
IGraphics2* pGraphics;
(...)
pGraphics = MakeGraphics(this, kWidth, kHeight);
It tells me that it can't convert from IGraphics* to IGraphics2*, which I think it means it's not recognizing the funcion MakeGraphics as inherited.
Any thoughts?
|