Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VC++
hi everyone,
 
I have to develop a trend graph in VC++ using MFC or it could be ATL also.
 
The graph looks like the followling:-
 
trend Graph
 
Can some one provide some help or link related to this??
 
Thanks a lots in advance.....
 
kellsie........
Posted 14-Dec-11 20:14pm

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Hey u can do it in OnDraw(CDC* pDC) function (which comes by default if the class is inherited from CView)
 
i have a sample code here..
 
   GRDSCDAPPDoc* pDoc = (GRDSCDAPPDoc*)GetDocument ();
     // TODO: add draw code here
 
   CRect ocWinRect;
     GetWindowRect (&ocWinRect);
 
   int iW = ocWinRect.Width (),
         iH = ocWinRect.Height ();
 
   m_iWidth = iW;
   m_iHeight = iH;
 
   RECT ocRect;
   ocRect.bottom = 0; ocRect.left = 0;
   ocRect.top = iH; ocRect.right = iW;
 
   CBrush ocBrush (RGB (0, 0, 0));
   pDC->FillRect (&ocRect, &ocBrush);
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 210
1 Richard MacCutchan 100
2 kbrandwijk 90
3 ChauhanAjay 80
4 ProgramFOX 80
0 Sergey Alexandrovich Kryukov 9,050
1 OriginalGriff 8,151
2 CPallini 2,613
3 Richard MacCutchan 2,221
4 Abhinav S 1,928


Advertise | Privacy | Mobile
Web04 | 2.8.140827.1 | Last Updated 15 Dec 2011
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100