I am writing a program that includes subclassing. I am successfully able to use wm_activateapp to determine when the active winodow has changed. The problem comes in determining the handle of the window that has become active. What I originally attemped to do was to respond the case wm_activateapp with getforegroundwindow(), but it does not work. I can not determine why. Is there any way to make it work with getforeground window? Is it possible to get the handle of the active window without using get foregroundwindow when subclassing with wm_activateapp? Thank you very much for the help.
Pulling out my hair,
Joseph
