In Part 2 of this series I demonstrated how to use the Shell_NotifyIconGetRect function to find the position of a notify icon. This function is new to Windows 7, however, and we must find a different solution for earlier versions of Windows. This turns out to be quite difficult. A post on the MSDN forums …
Tag Archive: dllimport
Dec 20
Windows 7-style Notification Area Applications in WPF: Part 5 (Fixing Aero Borders)
An issue that came to my attention only recently is that the borders of WPF (update: WPF is not actually to blame) windows without captions/title-bars (that is, with ResizeMode set to ‘CanResize’ and WindowStyle set to ‘None’) are drawn incorrectly when the DWM (read: Aero Glass) is enabled. Specifically, the upper and left borders are …
Tags: aero, aero glass, border, border padding, c#, dllimport, dwmapi, interop, keiki, notification area, pinvoke, taskbar, win32, wpf
Dec 11
Windows 7-style Notification Area Applications in WPF: Part 4 (Multiple Monitors)
At the end of Part 3 in this series, I noted that the window positioning logic depends on accurately getting the bounds of the monitor where the notify icon is located. Specifically, we require the bounds of the working area (the space on the monitor excluding the taskbar and other docked items). WPF gives us …
Dec 09
Windows 7-style Notification Area Applications in WPF: Part 3 (Taskbar Position)
In the previous post in this series, I showed how to find the location of a notify icon by implementing the new Windows 7 Shell32.dll function Shell_NotifyIconGetRect in managed code for use with the System.Windows.Forms.NotifyIcon class. In this post, I will look at how to accurately position a window above (or adjacent to) a notify …
Dec 08
Windows 7-style Notification Area Applications in WPF: Part 2 (Notify Icon Position)
You may have noticed that the notification area applications in Windows 7 (Volume/Power/Network/Action Centre) appear centred above their icon. I wanted Keiki to do the same; the current version is hardcoded to sit in the bottom right of the screen, which causes a few problems: The taskbar position is not taken into account; the window …
Links
Categories
- Keiki (9)
- Miscellaneous (8)
- Office (2)
- Programming (37)
- VCE (7)
- Windows (26)
Tags
Archives
- April 2013 (2)
- March 2013 (3)
- January 2013 (10)
- September 2012 (1)
- July 2012 (2)
- March 2012 (2)
- February 2012 (4)
- January 2012 (1)
- December 2011 (2)
- November 2011 (1)
- October 2011 (3)
- September 2011 (2)
- August 2011 (1)
- July 2011 (2)
- April 2011 (1)
- March 2011 (4)
- January 2011 (5)
- December 2010 (11)



