When visual styles are enabled in Windows, one may use the DrawThemeBackground function to draw themed push buttons. However, users of Windows XP, Windows Vista and Windows 7 can disable visual styles by selecting the Windows Classic theme or one of the High Contrast themes (and in Windows 2000 and earlier, visual styles weren’t available …
Tag Archive: user32
Dec 28
Windows 7-style Notification Area Applications in WPF: Part 6 (Notify Icon Position: Pre-Windows 7)
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 …
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 …
Links
Categories
- Keiki (9)
- Miscellaneous (8)
- Office (2)
- Programming (37)
- VCE (7)
- Windows (26)
Tags
aero aero glass border c# colour colours compression cryptography dllimport dpi dwmapi fonts herald sun interop keiki metro notification area notifyicon passwords pinvoke png pngout ppi scaling security segoe shell32 study score archive study scores taskbar themes tooltip ui user32 uxtheme vce visual styles vsstyle vssym32 vtac win32 windows windows 8 winforms wpf
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)


