You need to create a geometric pen (otherwise linesize is always fixed to 1). Using ExtCreatePen()
Set the line width.
Pen style will be dashed/hatched or whatever
Set the foreground mix mode (using SetROP2() in GDI) to do an XOR of the pen with the foreground
Draw the lines
Draw overthem with an XOR mode again to delete them non-destructively
Set the line width.
Pen style will be dashed/hatched or whatever
Set the foreground mix mode (using SetROP2() in GDI) to do an XOR of the pen with the foreground
Draw the lines
Draw overthem with an XOR mode again to delete them non-destructively