Einzelnen Beitrag anzeigen

Benutzerbild von toms
toms
(CodeLib-Manager)

Registriert seit: 10. Jun 2002
4.648 Beiträge
 
Delphi XE Professional
 
#2

Re: Drag&Drop von Dateien auf TrayIcon

  Alt 7. Apr 2008, 15:27
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.
Angehängte Dateien
Dateityp: zip dragndrop_tray_414.zip (416,6 KB, 13x aufgerufen)
Thomas
  Mit Zitat antworten Zitat