Weiter geht's so:
Zitat:
After the window is found, you need to figure out the correct icon. This is done by using the POINT send with the WM_DROPFILES and looping through all icons, which are actually buttons. This way one can figure out on which icon you dropped the files.
Using the code
The code is splitt into 2 files. One exe file that represents the tray icon app and a message hook
dll. The
dll installs a message hook to catch the WM_DROPFILES message and will check if we dropped anything on our tray icon. Then I send the message to the window that belongs to our tray icon app.
Als nächstes gilt es also, die C-Sourcen zu studieren.
Habe diese mal als Anhang hochgeladen, falls du kein Konto bei codeproject hast.