CRgn::CreateFromPath
BOOLCreateFromPath(CDC*pDC);
Return Value
Nonzero if the function is successful; otherwise 0.
Parameters
pDC
Identifies a device context that contains a closed path.
Remarks
Creates a region from the path that is selected into the given device context. 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.
CRgn Overview | Class Members | Hierarchy Chart
See Also CDC::BeginPath, CDC::EndPath, CDC::SetPolyFillMode