c++ - setting the color of a line

leopoldB
05-12-2008, 08:33 PM
I cannot set the color of a line that I draw (programmatically in c++). What I have tried so far is using code of the following form;

[pointer to my shape object]->Fill->ForeColor = color

For the color value I have tried pretty much everything I can think of and also anything that I could find on the web that seemed like it might work. I have not had any luck though. Anybody have experience setting a line's color this?

Wilfried
05-13-2008, 04:12 AM
Hi,

It is the Line property not the Fill property to set the color:

[pointer to my shape object]->Line->ForeColor = color;

leopoldB
05-13-2008, 07:55 AM
I have changed my code and it works now. Thanks!

 
Web mp2kmag.com
mapforums.com