Getting a message when a child control receives focus

114 Views Asked by At

I have a control that contains another control inside. The inner control sometimes snatches focus from other controls and I need to place a watch on this and change focus back. I'm subclassing the out control (can't subclass the inner one), and I'm listening for the WM_SETFOCUS message, but this only occurs when I click one of the controls. When the focus is snatched by the inner control itself, I'm getting nothing.

What am I doing wrong?

0

There are 0 best solutions below