Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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

Shlwapi.h

Library

Shlwapi.lib

DLL

Shlwapi.dll (version 4.71 or later)

Unicode and ANSI names

PathSetDlgItemPathW (Unicode) and PathSetDlgItemPathA (ANSI)

 

 

Community Additions

ADD
Show:
© 2015 Microsoft