Resetting a control's focus upon windows regaining focus
Posted on 2005-03-31
I just got a function which allows me to return the focus to a particular window, when I want to. But the new problem is how do I record the control field which last had focus, so that I can return the focus to it?
I could come up with a hokey method where I retain an enumerated value, and each enumerated value relates to a particular control field. But I'd like to see if there's a more elegant way, before I write it.
Does anybody have any idea about how to do this?
Thanks in advance.