Click here to Skip to main content
15,440,268 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
MemberEugen Podsypalnikov2-Apr-10 2:54 
GeneralRe: error C2440 using adjacent_difference stl template function Pin
fda1002-Apr-10 3:20
Memberfda1002-Apr-10 3:20 
QuestionFast 2D drawing Pin
Leif Simon Goodwin2-Apr-10 0:46
MemberLeif Simon Goodwin2-Apr-10 0:46 
AnswerRe: Fast 2D drawing Pin
Maximilien2-Apr-10 1:34
MemberMaximilien2-Apr-10 1:34 
GeneralRe: Fast 2D drawing Pin
Leif Simon Goodwin2-Apr-10 2:50
MemberLeif Simon Goodwin2-Apr-10 2:50 
AnswerRe: Fast 2D drawing Pin
Graham Breach2-Apr-10 1:34
MemberGraham Breach2-Apr-10 1:34 
GeneralRe: Fast 2D drawing Pin
Leif Simon Goodwin3-Apr-10 22:42
MemberLeif Simon Goodwin3-Apr-10 22:42 
AnswerRe: Fast 2D drawing Pin
Iain Clarke, Warrior Programmer2-Apr-10 5:25
MemberIain 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
MemberLeif Simon Goodwin3-Apr-10 22:38 
GeneralRe: Fast 2D drawing Pin
Leif Simon Goodwin3-Apr-10 22:44
MemberLeif Simon Goodwin3-Apr-10 22:44 
AnswerRe: Fast 2D drawing Pin
includeh102-Apr-10 6:28
Memberincludeh102-Apr-10 6:28 
GeneralRe: Fast 2D drawing Pin
Maximilien2-Apr-10 6:41
MemberMaximilien2-Apr-10 6:41 
AnswerRe: Fast 2D drawing Pin
Rozis3-Apr-10 12:44
MemberRozis3-Apr-10 12:44 
GeneralRe: Fast 2D drawing Pin
Leif Simon Goodwin3-Apr-10 22:40
MemberLeif Simon Goodwin3-Apr-10 22:40 
QuestionAny body know about Dia2Dump SDK and its usage? Pin
glitteringsound2-Apr-10 0:34
Memberglitteringsound2-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
Memberglitteringsound2-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
Memberglitteringsound2-Apr-10 7:08 
QuestionDragging in excel sheet from code Pin
Sunshine Always1-Apr-10 22:22
MemberSunshine Always1-Apr-10 22:22 
AnswerRe: Dragging in excel sheet from code Pin
mesajflaviu2-Apr-10 7:41
Membermesajflaviu2-Apr-10 7:41 
Questioncontrol event list empty in VS2008 - no messages listed Pin
permutations1-Apr-10 21:39
Memberpermutations1-Apr-10 21:39 
AnswerRe: control event list empty in VS2008 - no messages listed Pin
David Crow2-Apr-10 2:39
MemberDavid Crow2-Apr-10 2:39 
QuestionRe: control event list empty in VS2008 - no messages listed Pin
permutations2-Apr-10 3:33
Memberpermutations2-Apr-10 3:33 
AnswerRe: control event list empty in VS2008 - no messages listed Pin
permutations2-Apr-10 3:47
Memberpermutations2-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.