Discussion Locked

inverse dash line with Win32 API

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

do anyone know how can i draw DASH line with inverse mode with Win32 API?

i tried to do it like so:

SetROP2(hdc, R2_NOT);
HPEN pen = CreatePen(PS_DASH, 1, RGB(...));
SelectObject(hdc, pen);
LineTo(...);

//VC++5.0 , NT(WS)4.0(RU,SP4)

but it looks like solid! :(
if there isn't a direct way in API to do it, maybe anyone have ready-made code (function's source) for that kind of line

sorry lame english
thanx a lot ;)

5 replies

by conrad

"The truth will set you free, but first it will piss you off."

-- Saab Lofton

This discussion is closed to new replies.