[Mono-dev] Determining tray location (replacement for SHAppBarMessage and ABM_GETTASKBARPOS)

Leszek Ciesielski skolima at gmail.com
Sat Feb 9 15:07:09 EST 2008


does anyone know how to determine the placement of task bar /
application tray location using pure managed code? Application I am
porting paints it's own custom tooltips for it's tray icon, they are
quite large, so SHAppBarMessage has been used to determine the
direction in which the tooltip can expand. It seems that Mono's
NotifyIcon uses ThemeEngine.Current.BalloonWindowRect (this) for help
in placing it's tooltip, but this is an internal method.

If anyone is interested, the code is here:
and the previous, unreliable, managed version we used is here:


Leszek 'skolima' Ciesielski

MS-DOS user since 5.0
Windows user since 3.11
Linux user since kernel 2.4
Novell Netware user since 2.2
WARCRAFT user since 1.0

More information about the Mono-devel-list mailing list