drz@csri.toronto.edu (Jerry Zarycky) (04/09/91)
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