Sysop: | Amessyroom |
---|---|
Location: | Fayetteville, NC |
Users: | 26 |
Nodes: | 6 (0 / 6) |
Uptime: | 61:52:10 |
Calls: | 633 |
Calls today: | 1 |
Files: | 1,188 |
D/L today: |
32 files (20,076K bytes) |
Messages: | 181,453 |
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.