I've tried googling this, but I can't seem to come up with an answer. I'm developing a program and need to be able to detect when a CButton control receives focus (i.e. gets tabbed onto). Is there a way to do this short of sub-classing CButton?
If it matters, I need to be able to display certain things when a button receives focus, and then set focus the focus to another control when the user actually clicks on the button or hits the return key when that button is the active one.
I thought about trying to override the default behavior of WM_NEXTDLGCTL message handler, but I can't seem to find a way to do that. Does anybody have any other ideas? I'd like to avoid sub classing if possible because I only need this behavior for 3 buttons in a much larger program, and it's becoming confusing with all the extra classes that already exist.
Thanks for any help in advance!