CRgn::CreateFromPath
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

CRgn::CreateFromPath

Creates a region from the path that is selected into the given device context.

BOOL CreateFromPath(
   CDC* pDC 
);

Parameters

pDC
Identifies a device context that contains a closed path.

Return Value

Nonzero if the function is successful; otherwise 0.

Remarks

The device context identified by the pDC parameter must contain a closed path. After CreateFromPath converts a path into a region, Windows discards the closed path from the device context.

See Also

CRgn Overview | Class Members | Hierarchy Chart | CDC::BeginPath | CDC::EndPath | CDC::SetPolyFillMode

Show:
© 2016 Microsoft