call OnKillFoucus event of Edit box..............
-
ani_ikram wrote:
s there some way to call OnKillFocus Method of editboz against button clicking.
Yes, by clicking outside the edit box. :-\ or you can explicitly set focus to some control other than the edit box after setting it first on the edit box. ON another note, OnKillFocus is called by the framework, when the control looses the focus. or Try SendMessage with WM_KILLFOCUS as one of the params (Just a guess) Hope this helps..
Somethings seem HARD to do, until we know how to do them. ;-)_AnShUmAn_
-
ani_ikram wrote:
way to call OnKillFocus Method of editboz against button clicking
If you click button then the focus will be set to button. So the OnKillFocus of editbox will be called, provided you have mapped like ON_EN_KILLFOCUS(IDC_EDIT1, OnKillFocus)
- NS - [ODBaseBtn]
-
Did you declare OnKillFocus for editbox?
-
Simply map "OnKillFoucus" to the click event of button
ON_BN_CLICKED(IDC_BUTTON, OnKillFoucus)