Home » Community » Newbie corner » overwritten virtual void LeftDown - how to invoke WhenAction?
overwritten virtual void LeftDown - how to invoke WhenAction? [message #36706] |
Wed, 27 June 2012 20:20  |
Wolfgang
Messages: 146 Registered: November 2011 Location: Germany
|
Experienced Member |
|
|
Hi, I've created a class based on Button:
class PaintArea : public Button {
in this I overwrite LeftDown Action:
virtual void LeftDown(Point pos, dword flags) {
and now I'm asking how to call, when set, the WhenAction of the Button?
.h
.cpp
myPaintArea.WhenAction = THISBACK(anotherMethod);
with this code and the virtual void LeftDown the "anotherMethod" method isn't called - what to change in the virtual void LeftDown(..) method to call this method?
Thanks for help!
EDIT: Is it that easy, just call
at the bottom of the LeftDown method?
[Updated on: Wed, 27 June 2012 20:25] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Sun Jun 08 00:33:43 CEST 2025
Total time taken to generate the page: 0.04372 seconds
|