PathSetDlgItemPath function
Sets the text of a child control in a window or dialog box, using PathCompactPath to ensure the path fits in the control.
Syntax
void PathSetDlgItemPath( _In_ HWND hDlg, _In_ int id, _In_ LPCSTR pszPath );
Parameters
- hDlg [in]
-
Type: HWND
A handle to the dialog box or window.
- id [in]
-
Type: int
The identifier of the control.
- pszPath [in]
-
Type: LPCSTR
A pointer to a null-terminated string of maximum length MAX_PATH that contains the path to set in the control.
Return value
This function does not return a value.
Requirements
|
Minimum supported client |
Windows 2000 Professional, Windows XP [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows 2000 Server [desktop apps only] |
|
Header |
|
|
Library |
|
|
DLL |
|
|
Unicode and ANSI names |
PathSetDlgItemPathW (Unicode) and PathSetDlgItemPathA (ANSI) |