10 references to FromWin32
System.Windows.Forms (10)
misc\GDI\DeviceContext2.cs (4)
66
return ColorTranslator.
FromWin32
(IntUnsafeNativeMethods.GetBkColor( new HandleRef( this, this.Hdc )));
81
return ColorTranslator.
FromWin32
(IntUnsafeNativeMethods.SetBkColor( new HandleRef( this, this.Hdc ), ColorTranslator.ToWin32(newColor)));
419
return ColorTranslator.
FromWin32
(IntUnsafeNativeMethods.GetTextColor( new HandleRef( this, this.Hdc ) ));
434
return ColorTranslator.
FromWin32
(IntUnsafeNativeMethods.SetTextColor(new HandleRef( this, this.Hdc), ColorTranslator.ToWin32(newColor)));
misc\GDI\WindowsGraphics2.cs (1)
300
return ColorTranslator.
FromWin32
(colorResult);
winforms\Managed\System\WinForms\FontDialog.cs (1)
175
return ColorTranslator.
FromWin32
(ColorTranslator.ToWin32(color));
winforms\Managed\System\WinForms\ListView.cs (2)
5478
Color foreColor = ColorTranslator.
FromWin32
(SafeNativeMethods.GetTextColor(new HandleRef(this, nmcd->hdc)));
5479
Color backColor = ColorTranslator.
FromWin32
(SafeNativeMethods.GetBkColor(new HandleRef(this, nmcd->hdc)));
winforms\Managed\System\WinForms\TreeView.cs (1)
868
return ColorTranslator.
FromWin32
(intColor);
winforms\Managed\System\WinForms\VisualStyles\VisualStyleRenderer.cs (1)
621
return ColorTranslator.
FromWin32
(color);