User32MapDialogRect(IntPtr, Rectangle) Method
Converts the specified dialog box units to screen units (pixels).
The function replaces the coordinates in the specified
Rectangle 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.
Namespace: DevCase.Win32.NativeMethodsAssembly: 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 Rectangle refRect
)
<DllImportAttribute("User32.dll", ExactSpelling := true, SetLastError := true>]
Public Shared Function MapDialogRect (
hDlg As IntPtr,
ByRef refRect As Rectangle
) As Boolean
Dim hDlg As IntPtr
Dim refRect As Rectangle
Dim returnValue As Boolean
returnValue = User32.MapDialogRect(hDlg,
refRect)
public:
[DllImportAttribute(L"User32.dll", ExactSpelling = true, SetLastError = true)]
static bool MapDialogRect(
IntPtr hDlg,
Rectangle% refRect
)
[<DllImportAttribute("User32.dll", ExactSpelling = true, SetLastError = true)>]
static member MapDialogRect :
hDlg : IntPtr *
refRect : Rectangle byref -> bool
No code example is currently available or this language may not be supported.
- 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 Rectangle
-
A Rectangle structure that contains the dialog box coordinates to be converted.
Boolean
If the function succeeds, the return value is
.
If the function fails, the return value is
.