1 write to DeviceDpiNew
System.Windows.Forms (1)
System\Windows\Forms\Rendering\DpiChangedEventArgs.cs (1)
20DeviceDpiNew = (short)m.WParamInternal.LOWORD;
10 references to DeviceDpiNew
System.Windows.Forms (9)
System\Windows\Forms\Dialogs\ThreadExceptionDialog.cs (2)
347if (e.DeviceDpiNew != e.DeviceDpiOld) 349_scaledHeightPadding = (int)Math.Round(HEIGHTPADDING * ((float)e.DeviceDpiNew / e.DeviceDpiOld));
System\Windows\Forms\Form.cs (5)
4457if (e.DeviceDpiNew != e.DeviceDpiOld) 4478if (!_dpiFormSizes.ContainsKey(e.DeviceDpiNew)) 4480_dpiFormSizes.Add(e.DeviceDpiNew, new Size(e.SuggestedRectangle.Width, e.SuggestedRectangle.Height)); 4494ScaleContainerForDpi(e.DeviceDpiNew, e.DeviceDpiOld, e.SuggestedRectangle); 4523_deviceDpi = e.DeviceDpiNew;
System\Windows\Forms\Rendering\DpiChangedEventArgs.cs (2)
21Debug.Assert((short)m.WParamInternal.HIWORD == DeviceDpiNew, "Non-square pixels!"); 31public override string ToString() => $"was: {DeviceDpiOld}, now: {DeviceDpiNew}";
WinFormsControlsTest (1)
MenuStripAndCheckedListBox.cs (1)
27float factor = (float)e.DeviceDpiNew / e.DeviceDpiOld;