Hi,
I want to call a function from Class "A" in Class "B". Both of these classes are in the same header file.
class ClassA: My own class
{
public:
void OnMouseEvent(MouseEvent mouseEvent, CPoint point);
};
class ClassB: public CDialog
{
void SetMinMax();
};
I've tried using:
ClassB *dlg = (ClassB*) this->GetParent();
in the function "OnMouseEvent", But it gave me an:
"error C2039: 'GetParent' : is not a member of 'ClassA'
I need to call "SetMinMax() in OnMouseEvent().
Is there anyway to do it?
Thank you for helping.