Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Urgent! - Plotting/Drawing question

Status
Not open for further replies.

Sedai

Programmer
Mar 4, 2001
158
US
My app consists of one
main dialog box.
One of the controls in the dialog is
a Picture one, but I've given it a Rectangle type.
Is it possible to draw only inside this area using the
CDC *pDC;
pDC = GetDC();

CPen bluepen;
bluepen.CreatePen(PS_SOLID, 1, RGB(0,0,255));
etc...

As a matter of fact I cannot even draw at all, anywhere on the dialog area, nothin appears after
pDC->MoveTo(100,100);
pDC->LineTo(200, 200);
I've no idea why.
thank you.
Avendeval


 
i think im ok, i found the solution.
thanks anyway ;-) Avendeval


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top