18 references to DpiAwarenessContext
System.Windows.Forms (18)
misc\DpiHelper.cs (2)
318
DpiAwarenessContext
dpiAwareness = CommonUnsafeNativeMethods.GetThreadDpiAwarenessContext();
319
return CommonUnsafeNativeMethods.TryFindDpiAwarenessContextsEqual(dpiAwareness,
DpiAwarenessContext
.DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2);
winforms\Managed\System\WinForms\Application.cs (8)
1307
internal static void ParkHandle(HandleRef handle,
DpiAwarenessContext
dpiAwarenessContext =
DpiAwarenessContext
.DPI_AWARENESS_CONTEXT_UNSPECIFIED) {
1322
internal static void ParkHandle(CreateParams cp,
DpiAwarenessContext
dpiAwarenessContext =
DpiAwarenessContext
.DPI_AWARENESS_CONTEXT_UNSPECIFIED) {
1354
internal static void UnparkHandle(HandleRef handle,
DpiAwarenessContext
context) {
2586
internal ParkingWindow GetParkingWindow(
DpiAwarenessContext
context) {
2626
internal ParkingWindow GetParkingWindowForContext(
DpiAwarenessContext
context) {
2635
if (!DpiHelper.EnableDpiChangedHighDpiImprovements || CommonUnsafeNativeMethods.TryFindDpiAwarenessContextsEqual(context,
DpiAwarenessContext
.DPI_AWARENESS_CONTEXT_UNSPECIFIED)) {
winforms\Managed\System\WinForms\Control.cs (1)
594
internal
DpiAwarenessContext
DpiAwarenessContext {
winforms\Managed\System\WinForms\NativeWindow.cs (5)
108
private
DpiAwarenessContext
windowDpiAwarenessContext = DpiHelper.EnableDpiChangedHighDpiImprovements ?
110
DpiAwarenessContext
.DPI_AWARENESS_CONTEXT_UNSPECIFIED;
140
internal
DpiAwarenessContext
DpiAwarenessContext {
597
if (DpiHelper.EnableDpiChangedHighDpiImprovements && windowDpiAwarenessContext !=
DpiAwarenessContext
.DPI_AWARENESS_CONTEXT_UNSPECIFIED) {
599
if (handleDpiContext!=
DpiAwarenessContext
.DPI_AWARENESS_CONTEXT_UNSPECIFIED && !CommonUnsafeNativeMethods.TryFindDpiAwarenessContextsEqual(windowDpiAwarenessContext, handleDpiContext)) {
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (1)
480
using (DpiHelper.EnterDpiAwarenessScope(
DpiAwarenessContext
.DPI_AWARENESS_CONTEXT_SYSTEM_AWARE)) {
winforms\Managed\System\WinForms\ToolStripManager.cs (1)
1273
DpiAwarenessContext
context = CommonUnsafeNativeMethods.TryGetDpiAwarenessContextForWindow(m.HWnd);