BCPP 3.1 - Trapping the Enter key
Posted on 1997-06-06
I am attempting to treat the Enter key as a Tab key in BCPP 3.1. The PreProcessMsg is not available in this version.
I think the answer lies in overriding the DispatchAMessage routine but I can't figure out how to call the TWindowsObject::DispatchAMessage routine from my routine.
The declaration is:
virtual void DispatchAMessage(WORD AMsg, RTMessage AMessage, void (TWindowsObject::* _FAR) (RTMessage));
I cannot figure out how to pass the third argument to the standard TWindowsObject routine.
Maybe I'm on the wrong track anyway. My goal is catching the Enter key in a modal dialog.