Click here to Skip to main content
15,889,909 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: MFC design pattern Pin
pasztorpisti31-Jul-12 2:46
pasztorpisti31-Jul-12 2:46 
GeneralRe: MFC design pattern Pin
Richard MacCutchan31-Jul-12 3:01
mveRichard MacCutchan31-Jul-12 3:01 
GeneralRe: MFC design pattern Pin
pasztorpisti31-Jul-12 3:04
pasztorpisti31-Jul-12 3:04 
GeneralRe: MFC design pattern Pin
pasztorpisti31-Jul-12 2:50
pasztorpisti31-Jul-12 2:50 
GeneralRe: MFC design pattern Pin
Maximilien31-Jul-12 10:56
Maximilien31-Jul-12 10:56 
GeneralRe: MFC design pattern Pin
pasztorpisti31-Jul-12 11:07
pasztorpisti31-Jul-12 11:07 
AnswerRe: MFC design pattern Pin
Software_Developer1-Aug-12 6:25
Software_Developer1-Aug-12 6:25 
QuestionBest way to draw 3d bar graph? Pin
Phil Outram30-Jul-12 8:41
Phil Outram30-Jul-12 8:41 
Hi,

I need to draw a spikey 3D surface plot. It might include 300 x 500 points along the horizontal x and y axes and the height (z-axis) might be an integer between 0 and 100. I want the hight to be represented by colour banding...i.e. a point at the front of the graph with a value of 100 would be a tall bar going from green through brown through orange through to white at the top. And a value of 50 would only be a bar with green through to brown.

The most simple (and hopefully effective) solution I can think of is to draw a vertical bar for each point, rather than any triangle drawing as Excel does for it's surface plot.

My question is...how can I do this quickly? I'd do some vector maths to skip any points that don't need to be drawn (hidden bars) and merge others that sit on the same pixel, but could still have 1-2000 points to draw! So would it be possible/quicker to use a cached bitmap of a single full height bar and just copy a portion of it (depending on the z-value) onto a memory dc 2000 times or to use GDI+ and draw 2000 gradient lines/bars? I've not used GDI+ so am trying to work out which bit of darkness to stumble into and read up on!

Any thoughts/suggestions/relevant articles would be hugely appreciated.

Thanks,
Phil.
AnswerRe: Best way to draw 3d bar graph? Pin
_Flaviu30-Jul-12 20:23
_Flaviu30-Jul-12 20:23 
GeneralRe: Best way to draw 3d bar graph? Pin
Phil Outram30-Jul-12 23:24
Phil Outram30-Jul-12 23:24 
GeneralRe: Best way to draw 3d bar graph? Pin
_Flaviu31-Jul-12 0:58
_Flaviu31-Jul-12 0:58 
GeneralRe: Best way to draw 3d bar graph? Pin
Phil Outram31-Jul-12 3:05
Phil Outram31-Jul-12 3:05 
GeneralRe: Best way to draw 3d bar graph? Pin
_Flaviu31-Jul-12 20:20
_Flaviu31-Jul-12 20:20 
QuestionSplitter View Problem in MFC. Pin
Rishav Prabhakar29-Jul-12 19:15
Rishav Prabhakar29-Jul-12 19:15 
AnswerRe: Splitter View Problem in MFC. Pin
«_Superman_»30-Jul-12 1:47
professional«_Superman_»30-Jul-12 1:47 
AnswerRe: Splitter View Problem in MFC. Pin
Software_Developer30-Jul-12 7:20
Software_Developer30-Jul-12 7:20 
GeneralRe: Splitter View Problem in MFC. Pin
Rishav Prabhakar5-Aug-12 19:14
Rishav Prabhakar5-Aug-12 19:14 
QuestionHow to save a CTreeCtrl structure in a file? Pin
Le@rner29-Jul-12 19:01
Le@rner29-Jul-12 19:01 
AnswerRe: How to save a CTreeCtrl structure in a file? Pin
Richard MacCutchan29-Jul-12 21:51
mveRichard MacCutchan29-Jul-12 21:51 
AnswerRe: How to save a CTreeCtrl structure in a file? Pin
CPallini29-Jul-12 21:56
mveCPallini29-Jul-12 21:56 
GeneralRe: How to save a CTreeCtrl structure in a file? Pin
Software_Developer29-Jul-12 22:34
Software_Developer29-Jul-12 22:34 
GeneralRe: How to save a CTreeCtrl structure in a file? Pin
CPallini30-Jul-12 0:26
mveCPallini30-Jul-12 0:26 
GeneralRe: How to save a CTreeCtrl structure in a file? Pin
Software_Developer30-Jul-12 1:08
Software_Developer30-Jul-12 1:08 
QuestionRe: How to save a CTreeCtrl structure in a file? Pin
CPallini30-Jul-12 1:27
mveCPallini30-Jul-12 1:27 
GeneralRe: How to save a CTreeCtrl structure in a file? Pin
Le@rner31-Jul-12 1:30
Le@rner31-Jul-12 1:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.