Erik Ronström
2014-07-24 18:51:04 UTC
Hi,
I would like to run certain functions when my CAPI application loses focus to another application. On Cocoa, this is easy enough: I just specify :activate-callback when I create the cocoa-default-application-interface. On Windows however, I can't figure out how to do it.
The WM_ACTIVATEAPP message is what I want to catch, but is sent to the application's WindowProc function. Is it possible to hook into that via CAPI?
Using activate-callbacks of individual CAPI interfaces doesn't work well, since when an activation callback is called, there is no way to tell where it is loosing focus *to*.
Any ideas?
Erik
_______________________________________________
Lisp Hug - the mailing list for LispWorks users
lisp-***@lispworks.com
http://www.lispworks.com/support/lisp-hug.html
I would like to run certain functions when my CAPI application loses focus to another application. On Cocoa, this is easy enough: I just specify :activate-callback when I create the cocoa-default-application-interface. On Windows however, I can't figure out how to do it.
The WM_ACTIVATEAPP message is what I want to catch, but is sent to the application's WindowProc function. Is it possible to hook into that via CAPI?
Using activate-callbacks of individual CAPI interfaces doesn't work well, since when an activation callback is called, there is no way to tell where it is loosing focus *to*.
Any ideas?
Erik
_______________________________________________
Lisp Hug - the mailing list for LispWorks users
lisp-***@lispworks.com
http://www.lispworks.com/support/lisp-hug.html