34 references to ThemingScope
System.Windows.Forms (34)
winforms\Managed\System\WinForms\Application.cs (3)
1066
useVisualStyles = UnsafeNativeMethods.
ThemingScope
.CreateActivationContext(assemblyFileName, nativeResourceID);
3344
userCookie = UnsafeNativeMethods.
ThemingScope
.Activate();
3351
UnsafeNativeMethods.
ThemingScope
.Deactivate(userCookie);
winforms\Managed\System\WinForms\CommonDialog.cs (2)
307
userCookie = UnsafeNativeMethods.
ThemingScope
.Activate();
323
UnsafeNativeMethods.
ThemingScope
.Deactivate(userCookie);
winforms\Managed\System\WinForms\Control.cs (2)
5797
userCookie = UnsafeNativeMethods.
ThemingScope
.Activate();
5832
UnsafeNativeMethods.
ThemingScope
.Deactivate(userCookie);
winforms\Managed\System\WinForms\DateTimePicker.cs (2)
1126
IntPtr userCookie = UnsafeNativeMethods.
ThemingScope
.Activate();
1134
UnsafeNativeMethods.
ThemingScope
.Deactivate(userCookie);
winforms\Managed\System\WinForms\ImageList.cs (2)
540
IntPtr userCookie = UnsafeNativeMethods.
ThemingScope
.Activate();
547
UnsafeNativeMethods.
ThemingScope
.Deactivate(userCookie);
winforms\Managed\System\WinForms\ImageListStreamer.cs (2)
63
IntPtr userCookie = UnsafeNativeMethods.
ThemingScope
.Activate();
77
UnsafeNativeMethods.
ThemingScope
.Deactivate(userCookie);
winforms\Managed\System\WinForms\ListView.cs (2)
2453
IntPtr userCookie = UnsafeNativeMethods.
ThemingScope
.Activate();
2461
UnsafeNativeMethods.
ThemingScope
.Deactivate(userCookie);
winforms\Managed\System\WinForms\MessageBox.cs (2)
478
userCookie = UnsafeNativeMethods.
ThemingScope
.Activate();
488
UnsafeNativeMethods.
ThemingScope
.Deactivate(userCookie);
winforms\Managed\System\WinForms\MonthCalendar.cs (2)
1366
IntPtr userCookie = UnsafeNativeMethods.
ThemingScope
.Activate();
1373
UnsafeNativeMethods.
ThemingScope
.Deactivate(userCookie);
winforms\Managed\System\WinForms\ProgressBar.cs (2)
741
IntPtr userCookie = UnsafeNativeMethods.
ThemingScope
.Activate();
748
UnsafeNativeMethods.
ThemingScope
.Deactivate(userCookie);
winforms\Managed\System\WinForms\StatusBar.cs (2)
634
IntPtr userCookie = UnsafeNativeMethods.
ThemingScope
.Activate();
642
UnsafeNativeMethods.
ThemingScope
.Deactivate(userCookie);
winforms\Managed\System\WinForms\TabControl.cs (2)
1104
IntPtr userCookie = UnsafeNativeMethods.
ThemingScope
.Activate();
1111
UnsafeNativeMethods.
ThemingScope
.Deactivate(userCookie);
winforms\Managed\System\WinForms\ToolBar.cs (2)
1051
IntPtr userCookie = UnsafeNativeMethods.
ThemingScope
.Activate();
1058
UnsafeNativeMethods.
ThemingScope
.Deactivate(userCookie);
winforms\Managed\System\WinForms\ToolTip.cs (2)
878
IntPtr userCookie = UnsafeNativeMethods.
ThemingScope
.Activate();
893
UnsafeNativeMethods.
ThemingScope
.Deactivate(userCookie);
winforms\Managed\System\WinForms\TrackBar.cs (2)
857
IntPtr userCookie = UnsafeNativeMethods.
ThemingScope
.Activate();
863
UnsafeNativeMethods.
ThemingScope
.Deactivate(userCookie);
winforms\Managed\System\WinForms\TreeView.cs (2)
1656
IntPtr userCookie = UnsafeNativeMethods.
ThemingScope
.Activate();
1662
UnsafeNativeMethods.
ThemingScope
.Deactivate(userCookie);
winforms\Managed\System\WinForms\UnsafeNativeMethods.cs (1)
8198
lock (typeof(
ThemingScope
))