beginpath:<br>BOOL BeginPath(<br> HDC hdc // handle to device context <br>  
; <br>Parameters<br>hdc<br>Identifies the device context.<br>When constructing a path, only the CloseFigure, ExtTextOut, <br>LineTo, MoveToEx, PolyBezier, PolyBezierTo, Polygon, Polyline, PolylineTo, <br>PolyPolygon, PolyPolyline, and TextOut functions are recorded.<br><br>setBKMode:<br>The SetBkMode function sets the background mix mode of the specified device <br>context. The background mix mode is used with text, hatched brushes, and pen <br>styles that are not solid lines. <br>int SetBkMode(<br> HDC hdc, // handle of device context<br> int iBkMode // flag specifying background mode<br>  
; <br>Parameters<br>hdc<br>Identifies the device context. <br>iBkMode<br>Specifies the background mode. This parameter can be either of the following values: <br>Value Description<br>OPAQUE Background is filled with the current background color before the text, hatched brush, or pen is drawn.<br>TRANSPARENT Background remains untouched.<br>Return Values<br>If the function succeeds, the return value specifies the previous background mode.<br>If the function fails, the return value is zero. <br>Remarks<br>The SetBkMode function affects the line styles for lines drawn using a pen created by the CreatePen function. SetBkMode does not affect lines drawn using a pen created by the ExtCreatePen function. <br>The iBkMode parameter can also be set to driver-specific values. GDI passes such values to the device driver and otherwise ignores them.<br><br>endpath:<br>he EndPath function closes a path bracket and selects the path defined by the bracket into the specified device context. <br>BOOL EndPath(<br> HDC hdc // handle to device context <br>  
; <br>Parameters<br>hdc<br>Identifies the device context into which the new path is selected. <br>Return Values<br>If the function succeeds, the return value is nonzero.<br>If the function fails, the return value is zero. To get extended error <br>information, call GetLastError. GetLastError may return one of the following error codes: <br>ERROR_CAN_NOT_COMPLETE<br>ERROR_INVALID_PARAMETER