Link to home
Start Free TrialLog in
Avatar of mkashifkkj
mkashifkkj

asked on

Device context with diffrent color of pen object

I am drawing some figures and storing these figures as bmp file. All of this drawing is
done on a window that is not shown to the user.
This is done by using

memDC.CreateCompatibleDC(NULL);

 bitmap.CreateCompatibleBitmap(&memDC, 600,400);


Now this memDC is used for drawing diffrent figures.

as memDC.Rectangle(---);

I use diffrent color of Pens  to draw figures.

It works fine in normal case but in mine case when diffrent colors of pens are selected
only black color is displayed for all figures.

Help me so that using

memDC i can create figures generated by diffrent color of pens.

I hope this has clarified you.

Thanks.
ASKER CERTIFIED SOLUTION
Avatar of DanRollins
DanRollins
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mkashifkkj
mkashifkkj

ASKER

Its actually the same problem.
Thanks Dan.
Thanks Dan.