I put a command button on my VB6 form. I would like to make it so that if I click this button it will popup a message indicating which control most recently had FOCUS.
I know that if I press the command button it will cause the command button to receive focus. I am interested in finding out which control had focus just BEFORE the command button took the focus away from it. How would I do this?
Subclass the button.
Handle
WM_SETFOCUS.Act accordingly.
Example.
Form Form1:
Module modCleverButtonSublass