WM_KILLFOCUS [modified]
-
In Some Old Code some validation is done in WM_KILLFOCUS. Now We know that this is not a good way, But we don't wan't to change the code. If Some User's closes the dialog using "Top Right Cross Button" the dialog and its Data becomse invalid and after that the KillFocus comes. In This case we dont want the killfocus event to happen. Please suggest. Stuck in a Problem
-
In Some Old Code some validation is done in WM_KILLFOCUS. Now We know that this is not a good way, But we don't wan't to change the code. If Some User's closes the dialog using "Top Right Cross Button" the dialog and its Data becomse invalid and after that the KillFocus comes. In This case we dont want the killfocus event to happen. Please suggest. Stuck in a Problem
Indian Idol wrote:
In This case we dont want the killfocus event to happen.
maintain a FLAG, make it false when you receieve SC_CLOSE in WM_SYSCOMMAND!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and You