GetDialogDpiChangeBehavior function (winuser.h)

Returns the flags that might have been set on a given dialog by an earlier call to SetDialogDpiChangeBehavior.

If that function was never called on the dialog, the return value will be zero.

Syntax

DIALOG_DPI_CHANGE_BEHAVIORS GetDialogDpiChangeBehavior(
  HWND hDlg
);

Parameters

hDlg

The handle for the dialog to examine.

Return value

The flags set on the given dialog. If passed an invalid handle, this function will return zero, and set its last error to ERROR_INVALID_HANDLE.

Remarks

It can be difficult to distinguish between a return value of DDC_DEFAULT and the error case, which is zero. To determine between the two, it is recommended that you call GetLastError() to check the error.

Requirements

Requirement Value
Minimum supported client Windows 10, version 1703 [desktop apps only]
Minimum supported server Windows Server 2016 [desktop apps only]
Target Platform Windows
Header winuser.h
Library User32.lib
DLL User32.dll

See also

DIALOG_DPI_CHANGE_BEHAVIORS

SetDialogDpiChangeBehavior