How to detect if CEdti lost focus by mouse, keyboard or another event
-
Hi guys i would like to know how to do this i want to make my editing CEdit control know if it lost focus by a mouse click a keyboard hit, a popup window, etc Thx
i don't think that's possible. any window can grab focus any time it wants, just by calling SetFocus, and it doesn't need to tell anyone why.
-
Hi guys i would like to know how to do this i want to make my editing CEdit control know if it lost focus by a mouse click a keyboard hit, a popup window, etc Thx
Your
CEdit
will receive aWM_KILLFOCUS
, and you could implement a reaction for the message... :)virtual void BeHappy() = 0;
-
Hi guys i would like to know how to do this i want to make my editing CEdit control know if it lost focus by a mouse click a keyboard hit, a popup window, etc Thx