6 writes to deviceDpi
System.Windows.Forms (6)
winforms\Managed\System\WinForms\Control.cs (3)
494
deviceDpi
= DpiHelper.DeviceDpi;
8732
deviceDpi
= (int)UnsafeNativeMethods.GetDpiForWindow(new HandleRef(this, HandleInternal));
13423
deviceDpi
= (int)UnsafeNativeMethods.GetDpiForWindow(new HandleRef(this, HandleInternal));
winforms\Managed\System\WinForms\Form.cs (1)
5160
deviceDpi
= e.DeviceDpiNew;
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (1)
6103
this.
deviceDpi
=
winforms\Managed\System\WinForms\ToolStripDropDownItem.cs (1)
744
item.dropDown.
deviceDpi
= newDpi;
26 references to deviceDpi
System.Windows.Forms (26)
winforms\Managed\System\WinForms\ButtonInternal\CheckableControlBaseAdapter.cs (1)
86
return control.
deviceDpi
/ DpiHelper.LogicalDpi;
winforms\Managed\System\WinForms\ComboBox.cs (1)
5933
int dropDownButtonWidth = SystemInformation.GetHorizontalScrollBarArrowWidthForDpi(comboBox.
deviceDpi
);
winforms\Managed\System\WinForms\ContainerControl.cs (2)
324
currentAutoScaleDimensions = new SizeF((float)
deviceDpi
, (float)
deviceDpi
);
winforms\Managed\System\WinForms\Control.cs (9)
2243
return
deviceDpi
;
7759
SafeNativeMethods.AdjustWindowRectExForDpi(ref rect, style, bMenu, exStyle, (uint)
deviceDpi
);
8731
int old =
deviceDpi
;
8733
if (old !=
deviceDpi
) {
8734
RescaleConstantsForDpi(old,
deviceDpi
);
13422
int deviceDpiOld =
deviceDpi
;
13427
if (deviceDpiOld !=
deviceDpi
) {
13432
var factor = (float)
deviceDpi
/ deviceDpiOld;
13437
RescaleConstantsForDpi(deviceDpiOld,
deviceDpi
);
winforms\Managed\System\WinForms\Form.cs (2)
5159
DpiChangedEventArgs e = new DpiChangedEventArgs(
deviceDpi
, m);
5190
if (OnGetDpiScaledSize(
deviceDpi
, NativeMethods.Util.SignedLOWORD(m.WParam), ref desiredSize)) {
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (7)
291
btnDropDown.Size = DpiHelper.EnableDpiChangedHighDpiImprovements ? new Size(SystemInformation.VerticalScrollBarArrowHeightForDpi(this.
deviceDpi
), RowHeight) : new Size(SystemInformation.VerticalScrollBarArrowHeight, RowHeight);
315
btnDialog.Size = DpiHelper.EnableDpiChangedHighDpiImprovements ? new Size(SystemInformation.VerticalScrollBarArrowHeightForDpi(this.
deviceDpi
), RowHeight) : new Size(SystemInformation.VerticalScrollBarArrowHeight, RowHeight);
4426
Size sizeBtn = DpiHelper.EnableDpiChangedHighDpiImprovements? new Size(SystemInformation.VerticalScrollBarArrowHeightForDpi(this.
deviceDpi
), RowHeight):
5187
btnDropDown.Size = new Size(SystemInformation.VerticalScrollBarArrowHeightForDpi(this.
deviceDpi
), RowHeight);
6102
var oldDpi = this.
deviceDpi
;
6105
if (oldDpi !=
deviceDpi
) {
6106
RescaleConstantsForDpi(oldDpi, this.
deviceDpi
);
winforms\Managed\System\WinForms\TextBox.cs (2)
443
scrollBarPadding.Height += SystemInformation.GetHorizontalScrollBarHeightForDpi(
deviceDpi
);
446
scrollBarPadding.Width += SystemInformation.GetVerticalScrollBarWidthForDpi(
deviceDpi
);
winforms\Managed\System\WinForms\TextBoxBase.cs (1)
947
height += SystemInformation.GetBorderSizeForDpi(
deviceDpi
).Height * 4 + 3;
winforms\Managed\System\WinForms\VScrollBar.cs (1)
60
return new Size(SystemInformation.GetVerticalScrollBarWidthForDpi(this.
deviceDpi
), LogicalToDeviceUnits(VERTICAL_SCROLLBAR_HEIGHT));