Click here to Skip to main content
15,912,400 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: how we can move the bitmap when the mouse dragged Pin
happy_ram12-Jun-06 20:28
happy_ram12-Jun-06 20:28 
GeneralRe: how we can move the bitmap when the mouse dragged [modified] Pin
Justin Tay12-Jun-06 20:55
Justin Tay12-Jun-06 20:55 
Generalhere is my code Pin
happy_ram12-Jun-06 21:24
happy_ram12-Jun-06 21:24 
GeneralRe: here is my code [modified] Pin
Justin Tay12-Jun-06 21:50
Justin Tay12-Jun-06 21:50 
GeneralRe: here is my code Pin
happy_ram12-Jun-06 22:34
happy_ram12-Jun-06 22:34 
GeneralRe: here is my code Pin
Justin Tay12-Jun-06 22:43
Justin Tay12-Jun-06 22:43 
GeneralRe: here is my code Pin
happy_ram12-Jun-06 22:49
happy_ram12-Jun-06 22:49 
GeneralRe: here is my code Pin
Justin Tay12-Jun-06 23:27
Justin Tay12-Jun-06 23:27 
I hope you realise that you have a very strange approach to your problem. The whole move the static control around thing to scroll isn't a good way of doing it and it's not particularly hard to write your own picture control that can encapsulate scrolling. Is this school work?

If you need any more functionality than this like zoom in/out etc, or you find yourself needing to reuse this scrollable picture in a different dialog, you'll see what's wrong with your current approach.

Anyway if this works for normal scrolling using your mouse (make sure you've removed those SetWindowPos() things from your OnMouseMove handler - SetScrollPos should trigger the notifications to get OnVScroll and OnHScroll called). Set breakpoints in OnVScroll and OnHScroll and start dragging and see what's different.
GeneralRe: here is my code [modified] Pin
happy_ram12-Jun-06 23:45
happy_ram12-Jun-06 23:45 
GeneralRe: here is my code Pin
Justin Tay13-Jun-06 0:37
Justin Tay13-Jun-06 0:37 
GeneralRe: here is my code Pin
happy_ram13-Jun-06 0:45
happy_ram13-Jun-06 0:45 
GeneralRe: here is my code Pin
happy_ram13-Jun-06 1:06
happy_ram13-Jun-06 1:06 
GeneralRe: here is my code Pin
Justin Tay13-Jun-06 3:44
Justin Tay13-Jun-06 3:44 
GeneralRe: here is my code Pin
G Haranadh13-Jun-06 1:19
G Haranadh13-Jun-06 1:19 
GeneralRe: here is my code Pin
happy_ram13-Jun-06 1:23
happy_ram13-Jun-06 1:23 
AnswerRe: how we can move the bitmap when the mouse dragged Pin
khan++12-Jun-06 20:23
khan++12-Jun-06 20:23 
GeneralRe: how we can move the bitmap when the mouse dragged Pin
happy_ram12-Jun-06 20:29
happy_ram12-Jun-06 20:29 
GeneralRe: how we can move the bitmap when the mouse dragged Pin
khan++12-Jun-06 20:37
khan++12-Jun-06 20:37 
GeneralRe: how we can move the bitmap when the mouse dragged Pin
happy_ram12-Jun-06 20:47
happy_ram12-Jun-06 20:47 
GeneralRe: how we can move the bitmap when the mouse dragged Pin
khan++12-Jun-06 20:56
khan++12-Jun-06 20:56 
GeneralRe: how we can move the bitmap when the mouse dragged Pin
happy_ram12-Jun-06 21:02
happy_ram12-Jun-06 21:02 
AnswerRe: how we can move the bitmap when the mouse dragged [modified] Pin
Hamid_RT13-Jun-06 1:19
Hamid_RT13-Jun-06 1:19 
Questiondiff between win 64 and win 32 Pin
Krishnatv12-Jun-06 18:46
Krishnatv12-Jun-06 18:46 
AnswerRe: diff between win 64 and win 32 Pin
_AnsHUMAN_ 12-Jun-06 18:54
_AnsHUMAN_ 12-Jun-06 18:54 
GeneralRe: diff between win 64 and win 32 Pin
Krishnatv12-Jun-06 19:04
Krishnatv12-Jun-06 19:04 

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.