Click here to Skip to main content
16,006,531 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: question on dialog box Pin
Ganesh_T12-Jun-06 20:25
Ganesh_T12-Jun-06 20:25 
AnswerRe: question on dialog box Pin
Sarath C12-Jun-06 20:39
Sarath C12-Jun-06 20:39 
QuestionProblem in getting the active view Document pointer Pin
narayanagvs12-Jun-06 19:55
narayanagvs12-Jun-06 19:55 
QuestionHow to embed external document? Pin
Super Lloyd12-Jun-06 19:55
Super Lloyd12-Jun-06 19:55 
Questionhow we can move the bitmap when the mouse dragged Pin
happy_ram12-Jun-06 19:44
happy_ram12-Jun-06 19:44 
AnswerRe: how we can move the bitmap when the mouse dragged Pin
Laxman Auti12-Jun-06 20:16
Laxman Auti12-Jun-06 20:16 
QuestionRe: how we can move the bitmap when the mouse dragged Pin
happy_ram12-Jun-06 20:24
happy_ram12-Jun-06 20:24 
AnswerRe: how we can move the bitmap when the mouse dragged Pin
Justin Tay12-Jun-06 20:22
Justin Tay12-Jun-06 20:22 
When you click down and the image is scrollable, set a flag to indicate that the mouse is down and set the capture to the window and change the cursor to the hand cursor.

When the mouse moves store the previous x y position the mouse is at. If the mouse is down you take the current position and previous position, find the offset and scroll your window appropriately.

When the mouse button goes up clear the flag to indicate the mouse is down and release the capture and set the cursor back to the arrow cursor.
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 
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 

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.