This topic has not yet been rated - Rate this topic

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)

 

 

Send comments about this topic to Microsoft

Build date: 11/28/2012

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.