ShlwApiPathSetDlgItemPath Method
Sets the text of a child control in a window or dialog box, using PathCompactPath function to ensure the path fits in the control.
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("ShlwApi.dll", CharSet = CharSet.Auto, BestFitMapping = false,
ThrowOnUnmappableChar = true, SetLastError = true)]
public static void PathSetDlgItemPath(
IntPtr hDlg,
int id,
string path
)
<DllImportAttribute("ShlwApi.dll", CharSet := CharSet.Auto, BestFitMapping := false,
ThrowOnUnmappableChar := true, SetLastError := true>]
Public Shared Sub PathSetDlgItemPath (
hDlg As IntPtr,
id As Integer,
path As String
)
Dim hDlg As IntPtr
Dim id As Integer
Dim path As String
ShlwApi.PathSetDlgItemPath(hDlg, id,
path)
public:
[DllImportAttribute(L"ShlwApi.dll", CharSet = CharSet::Auto, BestFitMapping = false,
ThrowOnUnmappableChar = true, SetLastError = true)]
static void PathSetDlgItemPath(
IntPtr hDlg,
int id,
String^ path
)
[<DllImportAttribute("ShlwApi.dll", CharSet = CharSet.Auto, BestFitMapping = false,
ThrowOnUnmappableChar = true, SetLastError = true)>]
static member PathSetDlgItemPath :
hDlg : IntPtr *
id : int *
path : string -> unit
No code example is currently available or this language may not be supported.
Parameters
- hDlg IntPtr
-
A handle to the dialog box or window.
- id Int32
-
The identifier of the control.
- path String
-
A string of maximum length MAX_PATH that contains the path to set in the control.