Click here to Skip to main content
15,881,882 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: error C2440 using adjacent_difference stl template function [modified] Pin
Eugen Podsypalnikov2-Apr-10 2:54
Eugen Podsypalnikov2-Apr-10 2:54 
GeneralRe: error C2440 using adjacent_difference stl template function Pin
fda1002-Apr-10 3:20
fda1002-Apr-10 3:20 
QuestionFast 2D drawing Pin
Leif Simon Goodwin2-Apr-10 0:46
Leif Simon Goodwin2-Apr-10 0:46 
AnswerRe: Fast 2D drawing Pin
Maximilien2-Apr-10 1:34
Maximilien2-Apr-10 1:34 
GeneralRe: Fast 2D drawing Pin
Leif Simon Goodwin2-Apr-10 2:50
Leif Simon Goodwin2-Apr-10 2:50 
AnswerRe: Fast 2D drawing Pin
Graham Breach2-Apr-10 1:34
Graham Breach2-Apr-10 1:34 
GeneralRe: Fast 2D drawing Pin
Leif Simon Goodwin3-Apr-10 22:42
Leif Simon Goodwin3-Apr-10 22:42 
AnswerRe: Fast 2D drawing Pin
Iain Clarke, Warrior Programmer2-Apr-10 5:25
Iain Clarke, Warrior Programmer2-Apr-10 5:25 
It sounds like you're doing this pretty inefficiently.

Have a look at PolyPolyLine. With a combination of that and SetViewportxxx functions, you could zoom and pan quite speedily.

Have a look at:
The ViewPort Explorer[^]

Also, no need to draw text for every point unless there's only a few. Maybe hover a tooltip where the mouse is? Otherwise, you could be doing a LOT of text rendering...

DirectX is always a possibility, but a lot harder...

Do you have some horrible inefficent loops? ie,
for (n = 0; n < pMyLongLinkedList->GetSize (); n++)
{
   pMyLongLinkedList->GetNthMember ()->DoStuff ();
]


etc.

Iain.
I have now moved to Sweden for love (awwww).

GeneralRe: Fast 2D drawing Pin
Leif Simon Goodwin3-Apr-10 22:38
Leif Simon Goodwin3-Apr-10 22:38 
GeneralRe: Fast 2D drawing Pin
Leif Simon Goodwin3-Apr-10 22:44
Leif Simon Goodwin3-Apr-10 22:44 
AnswerRe: Fast 2D drawing Pin
includeh102-Apr-10 6:28
includeh102-Apr-10 6:28 
GeneralRe: Fast 2D drawing Pin
Maximilien2-Apr-10 6:41
Maximilien2-Apr-10 6:41 
AnswerRe: Fast 2D drawing Pin
Rozis3-Apr-10 12:44
Rozis3-Apr-10 12:44 
GeneralRe: Fast 2D drawing Pin
Leif Simon Goodwin3-Apr-10 22:40
Leif Simon Goodwin3-Apr-10 22:40 
QuestionAny body know about Dia2Dump SDK and its usage? Pin
glitteringsound2-Apr-10 0:34
glitteringsound2-Apr-10 0:34 
AnswerRe: Any body know about Dia2Dump SDK and its usage? Pin
Richard MacCutchan2-Apr-10 5:48
mveRichard MacCutchan2-Apr-10 5:48 
GeneralRe: Any body know about Dia2Dump SDK and its usage? Pin
glitteringsound2-Apr-10 6:44
glitteringsound2-Apr-10 6:44 
GeneralRe: Any body know about Dia2Dump SDK and its usage? Pin
Richard MacCutchan2-Apr-10 6:56
mveRichard MacCutchan2-Apr-10 6:56 
GeneralRe: Any body know about Dia2Dump SDK and its usage? Pin
glitteringsound2-Apr-10 7:08
glitteringsound2-Apr-10 7:08 
QuestionDragging in excel sheet from code Pin
Sunshine Always1-Apr-10 22:22
Sunshine Always1-Apr-10 22:22 
AnswerRe: Dragging in excel sheet from code Pin
mesajflaviu2-Apr-10 7:41
mesajflaviu2-Apr-10 7:41 
Questioncontrol event list empty in VS2008 - no messages listed Pin
permutations1-Apr-10 21:39
permutations1-Apr-10 21:39 
AnswerRe: control event list empty in VS2008 - no messages listed Pin
David Crow2-Apr-10 2:39
David Crow2-Apr-10 2:39 
QuestionRe: control event list empty in VS2008 - no messages listed Pin
permutations2-Apr-10 3:33
permutations2-Apr-10 3:33 
AnswerRe: control event list empty in VS2008 - no messages listed Pin
permutations2-Apr-10 3:47
permutations2-Apr-10 3:47 

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.