I can draw a 3D border using ControlPaint.DrawBorder3D, but I get a Windows Classic 3D border. I want to draw the current border of the 3D theme - in the default XP theme, it is 1px blue or gray border. How to do it and how to get its width?
It looks like you might need to look at System.Windows.Forms.VisualStyles.VisualStyleRenderer :
System.Windows.Forms.VisualStyles VisualStyleElement, (UI) , . , a VisualStyleRenderer , ., DrawBackground. VisualStyleRenderer , GetColor GetEnumValue, , .
System.Windows.Forms.VisualStyles VisualStyleElement, (UI) , . , a VisualStyleRenderer , .
System.Windows.Forms.VisualStyles
VisualStyleElement
VisualStyleRenderer
, DrawBackground. VisualStyleRenderer , GetColor GetEnumValue, , .
DrawBackground
GetColor
GetEnumValue
.
, VisualStyleElement.Window.Caption.Active, ( ), VisualStyleElement.Window.FrameBottom.Active. VisualStyleElement.Window, , , .
VisualStyleElement.Window.Caption.Active
VisualStyleElement.Window.FrameBottom.Active
VisualStyleElement.Window
.NET Framework 2.0
, , , XP. , , Button. ?
. UxTheme.dll. . - # DLL, . , , , , .
Source: https://habr.com/ru/post/1703562/More articles:Does changing the name of a variable throughout your code base just ask for disaster? - regexRewriteRule - a.php? A = 123 to / b / 123 - .htaccessHow to determine data string from xml in Xquery - xqueryКак заказать свойства в алфавитном порядке (Visual Studio 2008) - .netBest data type for storing a list of strings? - list.NET library for merging files - .netSvn and accented characters - svnCan a PHP script unserialize a stored file created using Perl? - phpPlatform Independent Parallel Programming Libraries for C ++ - c ++What is a good built-in browser for a pygtk application? - pythonAll Articles