Hello,

How does my application know when another application window has lost its focus.
I want my aplication can track if the active window has changed.
Please paste some code about using shell hooks and HSHELL_WINDOWACTIVATED or without hooks to do this task.

Thanks!

You'll need to make yourself a DLL that has the hook callback function. Google "system hook" for information.

Hope this helps.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.