Click here to Skip to main content
15,913,722 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Optimisation challenge... Pin
MarkB77730-Jun-10 11:01
MarkB77730-Jun-10 11:01 
GeneralRe: Optimisation challenge... Pin
Chris Losinger30-Jun-10 11:41
professionalChris Losinger30-Jun-10 11:41 
GeneralRe: Optimisation challenge... Pin
MarkB77730-Jun-10 12:00
MarkB77730-Jun-10 12:00 
QuestionWin32_ScheduledJob Pin
Jayapal Chandran29-Jun-10 23:36
Jayapal Chandran29-Jun-10 23:36 
Questionscollbar in CStatic Pin
kk.tvm29-Jun-10 23:28
kk.tvm29-Jun-10 23:28 
AnswerRe: scollbar in CStatic Pin
Cedric Moonen29-Jun-10 23:37
Cedric Moonen29-Jun-10 23:37 
GeneralRe: scollbar in CStatic Pin
kk.tvm29-Jun-10 23:57
kk.tvm29-Jun-10 23:57 
GeneralRe: scollbar in CStatic Pin
Cedric Moonen30-Jun-10 0:13
Cedric Moonen30-Jun-10 0:13 
kk.tvm wrote:
But i can't change scroll position.


Do you mean that the scroll is displayed properly and that you can use it correctly but it doesn't have any effect on your drawing ?
That's what I would guess by seeing your code, since you do not do anything with the scroll position (it's a local variable). What you need to do is remember the scroll position and use it when you draw your picture: you have to apply it as an offset to the picture. It's not because you added a scroll bar to a control that it will magically move when you use the scrollbar. You have to do that yourself by shifting the picture when the scroll is moved.
Cédric Moonen
Software developer

Charting control [v3.0]
OpenGL game tutorial in C++

GeneralRe: scollbar in CStatic Pin
kk.tvm30-Jun-10 0:39
kk.tvm30-Jun-10 0:39 
GeneralRe: scollbar in CStatic Pin
Cedric Moonen30-Jun-10 1:06
Cedric Moonen30-Jun-10 1:06 
GeneralRe: scollbar in CStatic Pin
kk.tvm30-Jun-10 1:21
kk.tvm30-Jun-10 1:21 
QuestionMessage Removed Pin
29-Jun-10 22:34
learningvisualc29-Jun-10 22:34 
AnswerRe: Detecting sim card reader Pin
LloydA11130-Jun-10 1:16
LloydA11130-Jun-10 1:16 
Questionconditional menu Pin
josip cagalj29-Jun-10 22:27
josip cagalj29-Jun-10 22:27 
AnswerRe: conditional menu Pin
Richard MacCutchan30-Jun-10 1:34
mveRichard MacCutchan30-Jun-10 1:34 
AnswerRe: conditional menu Pin
KarstenK30-Jun-10 3:46
mveKarstenK30-Jun-10 3:46 
GeneralRe: conditional menu Pin
josip cagalj30-Jun-10 3:50
josip cagalj30-Jun-10 3:50 
GeneralRe: conditional menu Pin
KarstenK30-Jun-10 3:55
mveKarstenK30-Jun-10 3:55 
GeneralRe: conditional menu Pin
josip cagalj30-Jun-10 3:57
josip cagalj30-Jun-10 3:57 
QuestionHow to distinguish a physical printer from a virtual printer? Pin
lek25829-Jun-10 21:36
lek25829-Jun-10 21:36 
AnswerRe: How to distinguish a physical printer from a virtual printer? Pin
«_Superman_»29-Jun-10 22:50
professional«_Superman_»29-Jun-10 22:50 
QuestionRe: How to distinguish a physical printer from a virtual printer? Pin
David Crow30-Jun-10 3:17
David Crow30-Jun-10 3:17 
AnswerRe: How to distinguish a physical printer from a virtual printer? Pin
Iain Clarke, Warrior Programmer30-Jun-10 12:26
Iain Clarke, Warrior Programmer30-Jun-10 12:26 
Questioncannot get the first vallue from ComboBox Pin
raju_shiva29-Jun-10 21:14
raju_shiva29-Jun-10 21:14 
AnswerRe: cannot get the first vallue from ComboBox Pin
CPallini29-Jun-10 21:43
mveCPallini29-Jun-10 21:43 

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.