Jan 24, 2006 #1 S Syazarine 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!
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!
Jan 26, 2006 #2 H hoangkhoi Newbie level 5 Joined Nov 24, 2005 Messages 10 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,281 Activity points 1,416 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.
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.