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


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

BOOL CreateFromPath(
   CDC* pDC 


Identifies a device context that contains a closed path.

Return Value

Nonzero if the function is successful; otherwise 0.


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

© 2015 Microsoft