pghsteelers
Technical User
I am going through creating some message handlers and having a problem understanding a certain situation.
To my understanding, if a base class member function is not set to "private" this it will be available and passed down to classes drived from that base class consisting of the member function in question.
However, when editing the message WM_OnLButtonUp, it will generate a call as
[source]
void CAppNameView::OnLButtonDown(UINT nFlags, CPoint point)
[/source]
but it also automatically generates a call to the member function in the base class
[source]
void CView::OnLButtonDown(nFlags, point)
[/source]
However, what I was hoping someone can clarify is, WHY, that has to be called if that member function should be available through my derived class of CAppNameView instead of needing a direct call to the base class member function.
Obviously, I missing the boat on this, if someone can direct me back on course to understand what I am missing.
Thanks,
To my understanding, if a base class member function is not set to "private" this it will be available and passed down to classes drived from that base class consisting of the member function in question.
However, when editing the message WM_OnLButtonUp, it will generate a call as
[source]
void CAppNameView::OnLButtonDown(UINT nFlags, CPoint point)
[/source]
but it also automatically generates a call to the member function in the base class
[source]
void CView::OnLButtonDown(nFlags, point)
[/source]
However, what I was hoping someone can clarify is, WHY, that has to be called if that member function should be available through my derived class of CAppNameView instead of needing a direct call to the base class member function.
Obviously, I missing the boat on this, if someone can direct me back on course to understand what I am missing.
Thanks,