---
name: "PathCompactPathA"
section: "3w"
platform: "linux"
package: "libwine-dev"
version: "1.4.1-4"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/PathCompactPathA"
---

# PathCompactPathA(3w)

## NAME

**PathCompactPathA** (SHLWAPI.@)

## SYNOPSIS

BOOL PathCompactPathA\
  (\
   HDC   *hDC*,\
   LPSTR *lpszPath*,\
   UINT  *dx*\
  )

## DESCRIPTION

Make a path fit into a given width when printed to a **DC**.

## PARAMS

hDc **\[In\]**  Destination **DC**.

*lpszPath* **\[In/Out\]**  Path to be printed to hDc.

*dx* **\[In\]**  Desired width.

## RETURNS

**TRUE** If the path was modified/went well. **FALSE** Otherwise.

## IMPLEMENTATION

Declared in **"shlwapi.h"**.

Implemented in **"dlls/shlwapi/path.c"**.

Debug channel **"shell"**.
