Menu

#3 Add mouse events to TrayIcon

open
nobody
StTrayIcon (3)
7
2013-01-15
2003-01-29
Anonymous
No

Exported from Bugzilla, issue 2201.

--- Comment added on 12/28/01 1:50:09 PM ---
A customer has asked for notification when mouse events occur over a "tray
iconized" application.

According to MSDN, by supplying a custom message in the uCallBackMessage of the
TNotifyIconData structure, and adding the NIF_MESSAGE option to the uFlags
field, the Window handle passed in the WND field will have Mouse messages
forwarded to it from the tray.

TStTrayIcon implements the message ID in the form of the TrayIconID constant in
StTrIcon.pas; but doesn't actually do anything with it in the context of the
WndProc method.

Seems like adding OnMouseUp, OnMouseMove, OnMouseDown events to TStTrayIcon via
this mechanism should be relatively straightforward.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.