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.
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 NativeRectangle refRect
)
<DllImportAttribute("User32.dll", ExactSpelling := true, SetLastError := true>]
Public Shared Function MapDialogRect (
hDlg As IntPtr,
ByRef refRect As NativeRectangle
) As Boolean
Dim hDlg As IntPtr
Dim refRect As NativeRectangle
Dim returnValue As Boolean
returnValue = User32.MapDialogRect(hDlg,
refRect)
public:
[DllImportAttribute(L"User32.dll", ExactSpelling = true, SetLastError = true)]
static bool MapDialogRect(
IntPtr hDlg,
NativeRectangle% refRect
)
[<DllImportAttribute("User32.dll", ExactSpelling = true, SetLastError = true)>]
static member MapDialogRect :
hDlg : IntPtr *
refRect : NativeRectangle 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 NativeRectangle
-
A NativeRectangle 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
.