Article View: comp.windows.ms.programmer
Article #2000Drawing dotted lines under Windows
From: Jerry Zarycky
Date: Mon, 08 Apr 1991 19:56
Date: Mon, 08 Apr 1991 19:56
20 lines
1218 bytes
1218 bytes
I am trying to draw a dotted line under Windows 3.0 like the dotted lines
one would see in a spreadsheet such as Excel or Wingz.
The line should consist of alternate white and black dots.
I am currently using the CreatePen called and the PS_DOT parameter
to create a pen which should draw dotted lines.
My problem is that the "dots" are too long - drawing lines with this
pen makes it look like dashed lines instead. When I use the PS_DASH
parameter, i get REALLY long dashed lines.
I tried drawing the line pixel by pixel, alternating black and white
dots, but the performance was too slow.
Does anyone know how the spreadsheet programs get it to draw so fast?
Am I missing something obvious?
Help?!
Jerry Zarycky
Usenet: {uunet,watmath}!csri.toronto.edu!drz
CSNET: drz@csri.toronto.edu EAN: drz@csri.toronto.cdn
BITNET: drz@csri.utoronto
Technical Details
Message-ID:
<1991Apr8.155647.17968@jarvis.csri.toronto.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!csri.toronto.edu!drzShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!csri.toronto.edu!drz Newsgroups: comp.windows.ms.programmer From: drz@csri.toronto.edu (Jerry Zarycky) Subject: Drawing dotted lines under Windows Message-ID: <1991Apr8.155647.17968@jarvis.csri.toronto.edu> Organization: CSRI, University of Toronto Date: 8 Apr 91 19:56:47 GMT Lines: 21