View Single Post
Old 03-29-2018, 10:11 AM   #3
MLN
Human being with feelings
 
MLN's Avatar
 
Join Date: Mar 2018
Location: Portugal
Posts: 7
Default

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?
MLN is offline   Reply With Quote