Click here to Skip to main content
15,890,438 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Pure Functions.. Pin
David Crow20-Feb-09 2:57
David Crow20-Feb-09 2:57 
QuestionProblem while horizontal scrolling Pin
Deepu Antony20-Feb-09 0:43
Deepu Antony20-Feb-09 0:43 
AnswerRe: Problem while horizontal scrolling Pin
Nishad S20-Feb-09 2:01
Nishad S20-Feb-09 2:01 
GeneralRe: Problem while horizontal scrolling Pin
Deepu Antony20-Feb-09 2:21
Deepu Antony20-Feb-09 2:21 
GeneralRe: Problem while horizontal scrolling Pin
Nishad S20-Feb-09 2:29
Nishad S20-Feb-09 2:29 
GeneralRe: Problem while horizontal scrolling Pin
Deepu Antony20-Feb-09 2:52
Deepu Antony20-Feb-09 2:52 
GeneralRe: Problem while horizontal scrolling Pin
Nishad S20-Feb-09 18:39
Nishad S20-Feb-09 18:39 
AnswerRe: Problem while horizontal scrolling Pin
Iain Clarke, Warrior Programmer20-Feb-09 4:26
Iain Clarke, Warrior Programmer20-Feb-09 4:26 
Your problem has an easy solution...

In your CMyScrollView::OnDraw function, just call GetScrollPosition, and add the ptScroll.x value to your drawing code for the Y scale.
I might be 100% wrong and you need to subtract the ptScroll.x value instead, but you can find that out faster than I can!

It won't be flicker free, but it will help. For a flicker free solution, you'll have to get more complicated. I use my own view class and handle scrolling myself, and also make a non-zero nonclient area around the edge for a scale / ruler. But that's too much for a quick forum reply!

Good luck,

Iain.

Codeproject MVP for C++, I can't believe it's for my lounge posts...

AnswerRe: Problem while horizontal scrolling [modified] Pin
Deepu Antony22-Feb-09 20:18
Deepu Antony22-Feb-09 20:18 
QuestionFix for boken class view in Visual Studio 2008 Pin
Desmond Mardle20-Feb-09 0:36
Desmond Mardle20-Feb-09 0:36 
AnswerRe: Fix for boken class view in Visual Studio 2008 Pin
Desmond Mardle20-Feb-09 1:34
Desmond Mardle20-Feb-09 1:34 
QuestionDynamic programming Pin
rnsk_for_u20-Feb-09 0:13
rnsk_for_u20-Feb-09 0:13 
AnswerRe: Dynamic programming Pin
CPallini20-Feb-09 0:33
mveCPallini20-Feb-09 0:33 
AnswerRe: Dynamic programming Pin
Nishad S20-Feb-09 0:36
Nishad S20-Feb-09 0:36 
AnswerRe: Dynamic programming Pin
David Crow20-Feb-09 2:58
David Crow20-Feb-09 2:58 
AnswerRe: Dynamic programming Pin
Stuart Dootson20-Feb-09 3:05
professionalStuart Dootson20-Feb-09 3:05 
AnswerNothing to see here, move along Pin
led mike20-Feb-09 4:27
led mike20-Feb-09 4:27 
QuestionHow to read a complete row. Pin
VC_RYK20-Feb-09 0:08
VC_RYK20-Feb-09 0:08 
AnswerRe: How to read a complete row. Pin
CPallini20-Feb-09 0:26
mveCPallini20-Feb-09 0:26 
QuestionAbout uses of RDLC in VC++.net 2005 Pin
ddgalande20-Feb-09 0:01
ddgalande20-Feb-09 0:01 
QuestionSerialize a variable length structure Pin
hatemtaleb19-Feb-09 23:30
hatemtaleb19-Feb-09 23:30 
AnswerRe: Serialize a variable length structure Pin
«_Superman_»19-Feb-09 23:35
professional«_Superman_»19-Feb-09 23:35 
AnswerRe: Serialize a variable length structure Pin
Stuart Dootson20-Feb-09 2:34
professionalStuart Dootson20-Feb-09 2:34 
QuestionHelp For NtDsAPI.Lib Pin
vijith.squadz19-Feb-09 22:41
professionalvijith.squadz19-Feb-09 22:41 
AnswerRe: Help For NtDsAPI.Lib Pin
«_Superman_»19-Feb-09 23:39
professional«_Superman_»19-Feb-09 23:39 

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.