I'm deriving a new class from CButton, and it's designed to handle the reflected BN_CLICKED notification itself. But I still want its parent window to react when it's clicked. So, in the message handler of the control, after finishing any works I want, I'm relaying the message to its parent:
GetParent()->SendMessage(WM_COMMAND, MAKEWPARAM(MyID, BN_CLICKED));
But I don't know how to get its own identification 'MyID'.
Hope anybody could help me!
Thanks in advance.