Vista/Windows 7 Chevron Button
-
Sunday, November 20, 2011 12:03 AM
Does Microsoft provide the Up/Down Chevron Buttons displayed below, either through code or the actual images?
All Replies
-
Monday, November 21, 2011 7:45 AMModerator
Hi FMcElroy21,
If you want the actual images, on the premise of no infringement or deceit, you can just capture it and save as image for use.
If you want draw it through code, from what I have searched, you need visual theme API- DrawThemeBackground, the Class, Part and States for Chevron button listed in the official MSDN site http://msdn.microsoft.com/en-us/library/bb773210%28v=vs.85%29.aspx as TaskDIALOG, TDLG_EXPANDOBUTTON.
Besides, you can get the function signature for DrawThemeBackground from Pinvoke.Net http://pinvoke.net/default.aspx/uxtheme/DrawThemeBackground.html
One thing you need to know is this DrawThemeBackground is a function under UxTheme.dll, and Microsoft does not offer any official download site for it.
More info, please read:
http://stackoverflow.com/questions/4009701/windows-visual-themes-gallery-of-parts-and-states
Have a nice day,
Kee Poppy [MSFT]
MSDN Community Support | Feedback to us
- Proposed As Answer by Cor LigthertMVP Monday, November 21, 2011 8:15 AM
- Marked As Answer by GMcElroy21 Monday, November 21, 2011 9:41 PM
-
Monday, November 21, 2011 8:14 AM
Hi FMcElroy21,
If you want the actual images, on the premise of no infringement or deceit, you can just capture it and save as image for use.
And then simply set it as background for a normal button; could not find that essential one in the helpful message from Poppy.
:-)
Success
Cor- Edited by Cor LigthertMVP Monday, November 21, 2011 8:15 AM

