User32MapDialogRect(IntPtr, NativeRectangle) Method

Converts the specified dialog box units to screen units (pixels).

The function replaces the coordinates in the specified NativeRectangle structure with the converted coordinates, which allows the structure to be used to create a dialog box or position a control within a dialog box.

Definition

Namespace: DevCase.Win32.NativeMethods
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("User32.dll", ExactSpelling = true, SetLastError = true)]
public static bool MapDialogRect(
	IntPtr hDlg,
	ref NativeRectangle refRect
)

Parameters

hDlg  IntPtr
A handle to a dialog box.

This function accepts only handles returned by one of the dialog box creation functions; handles for other windows are not valid.

refRect  NativeRectangle
A NativeRectangle structure that contains the dialog box coordinates to be converted.

Return Value

Boolean
If the function succeeds, the return value is .

If the function fails, the return value is .

Remarks

See Also