Hello all,
I've written a program with a systray icon, and whenever I click the systray icon the program currently having focus looses it. Is there a way to stop this behaviour ?
If not, is there a way to release the focus (back to the previous program) ?
P.s.
It looks like comp.os.ms-windows.programmer.win32 is rather dead. Does anybody know if there is another newsgroup for API programmers ?
I've written a program with a systray icon, and whenever I click
the systray icon the program currently having focus looses it.
Is there a way to stop this behaviour ?
Try not letting the system handle WM_ACTIVATEAPP message if it's
deactivating the current application window.
Get next/previous visible top-level non-message-only window,
then focus back to it.
It looks like comp.os.ms-windows.programmer.win32 is rather dead.
Does anybody know if there is another newsgroup for API programmers ?
Autohotkey subreddit.
JJ,
I've written a program with a systray icon, and whenever I click
the systray icon the program currently having focus looses it.
Is there a way to stop this behaviour ?
Try not letting the system handle WM_ACTIVATEAPP message if it's
deactivating the current application window.
? Are you suggesting I should try to intercept messages *outside* of my program with its system-tray icon ?
Try not letting the system handle WM_ACTIVATEAPP message if it's
deactivating the current application window.
? Are you suggesting I should try to intercept messages *outside* of my
program with its system-tray icon ?
I believe this meant not passing that message from your assembler window function to the DefWindowProc API.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (2 / 14) |
Uptime: | 45:19:02 |
Calls: | 10,392 |
Files: | 14,066 |
Messages: | 6,417,264 |