假设我有以下代码:
Dim _Brush_Disabled As New SolidBrush(Color.FromKnownColor(KnownColor.GrayText))
Dim _Brush_Enabled As New SolidBrush(Color.FromKnownColor(KnownColor.WindowText))
Sub Do_Something()
'
' ... _Brush_Disabled and _Brush_Enabled are repeatedly used in this sub
'
End Sub
如果Windows配色方案发生变化,_Brush_Disabled
和_Brush_Enabled
会自动更改颜色吗?
如果没有,我怎样才能让他们“跟踪”Windows配色方案的变化?