FlattenPath

  BOOL FlattenPath(hdc)    
  HDC hdc;    

The FlattenPath function transforms the specified path, turning all portions of the path which consist of curves into sequences of lines.

Parameters

hdc

Identifies the device context of the path.

Return Value

The return value is TRUE if the call succeeded, otherwise FALSE.

Errors

Use the GetLastError function to retrieve the error value, which may be one of the following:

ERROR_INVALID_MODE  
ERROR_INVALID_PARAMETER  
ERROR_NOT_ENOUGH_MEMORY  

Comments

The DC must have an inactive path bracket, started by calling BeginPath and ended by calling EndPath.