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

C / C++ / MFC

 
AnswerRe: question on dialog box Pin
_AnsHUMAN_ 12-Jun-06 20:11
_AnsHUMAN_ 12-Jun-06 20:11 
AnswerRe: question on dialog box Pin
khan++12-Jun-06 20:15
khan++12-Jun-06 20:15 
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 
sree_as wrote:
i ahve one bitmap loaded in picture control with scrollbars .know what i want is when we click the bitmap and dragged it should move to corresponding co-ordinates.
for example.
in irfan view when the image is bigger then a window then mouse cursor will change his shape to hand. we drag to see the full picture
thank u in advance.


You have to override OnMousemove method..track the mouse cooridates when LBUTTON is DOWN and bitblt the bitmap with the proportion of the mouse coordinates so that your bitmap will display fully.

Knock out 't' from can't,
You can if you think you can
Cool | :cool:
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 
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 

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.