Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Creating graphs with Visual C++

Status
Not open for further replies.

Syazarine

Newbie level 2
Newbie level 2
Joined
Jan 24, 2006
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,294
drawing graphs in visual c++ 2005

hi there..i'm new to this site. i heard that the CDC class supports graph drawing in VC++. But i don't know the member functions. does anyone know or have source codes to create/draw Graphs in VC++ without using ActiveX controls?
thanks so much!
 

vc++ graphs

This is code to draw line in MFC
void CMainWindow::OnLButtonDown (UINT nFlags, CPoint point)
{
CRect rect;
GetClientRect (&rect);

CClientDC dc (this);
dc.MoveTo (rect.left, rect.top);
dc.LineTo (rect.right, rect.bottom);
dc.MoveTo (rect.right, rect.top);
dc.LineTo (rect.left, rect.bottom);
}

Every MFC book explains CDC class in details. So you can check them to see more.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top