using GDI to draw round ended line
I would like to draw round ended lines using GDI but the below solution doesnt works.
My Compiler doesn't recognize PS_ENDCAP_ROUND and ExtCreatePen.
Can anyone point out what I have miss out here? Thanks.
DWORD pStyle = PS_GEOMETRIC | PS_ENDCAP_ROUND;
DWORD pWidth = 16;
lBrush.lbStyle = BS_SOLID;
lBrush.lbColor = RGB(0,0,0);
lBrush.lbHatch = 0;
HPEN hPen = ExtCreatePen(pStyle, pWidth, &lBrush, NULL, NULL);
OldHPen = (HPEN)SelectObject(DrawingBuffer,hPen)