WM_KILLFOCUS problem
-
In the main window callback function I get the WM_KILLFOCUS message when I click on the window, and only then I get the WM_SETFOCUS message. Is that OK? I thought that WM_KILLFOCUS message is sent to a window immediatly before it looses focus. I want to register some values when the window has keyboard focus and unregister the values when the window looses focus. How can I do that?
danginkgo
danginkgo wrote:
I want to register some values when the window has keyboard focus and unregister the values when the window looses focus.
It sounds like you need to use
WM_ACTIVATEAPP
instead."Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
-
danginkgo wrote:
I want to register some values when the window has keyboard focus and unregister the values when the window looses focus.
It sounds like you need to use
WM_ACTIVATEAPP
instead."Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne