Click here to Skip to main content
15,911,891 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Cannot get the correct cursor position in picture control Pin
David Crow4-Feb-09 4:40
David Crow4-Feb-09 4:40 
AnswerRe: Cannot get the correct cursor position in picture control Pin
z01e4-Feb-09 4:41
z01e4-Feb-09 4:41 
GeneralRe: Cannot get the correct cursor position in picture control Pin
John5024-Feb-09 4:49
John5024-Feb-09 4:49 
AnswerRe: Cannot get the correct cursor position in picture control Pin
Code-o-mat4-Feb-09 4:53
Code-o-mat4-Feb-09 4:53 
QuestionRe: Cannot get the correct cursor position in picture control Pin
z01e4-Feb-09 5:03
z01e4-Feb-09 5:03 
AnswerRe: Cannot get the correct cursor position in picture control Pin
Code-o-mat4-Feb-09 5:36
Code-o-mat4-Feb-09 5:36 
QuestionRe: Cannot get the correct cursor position in picture control Pin
z01e4-Feb-09 5:56
z01e4-Feb-09 5:56 
AnswerRe: Cannot get the correct cursor position in picture control Pin
Code-o-mat4-Feb-09 6:10
Code-o-mat4-Feb-09 6:10 
I'm not sure what you mean, but if my guess is correct, you are drawing onto the picture control with the mouse. In this case, you will either have to remember what lines you have drawn, this aproach is more complicated, or simply, draw ONTO the bitmap in memory also, not just the window, this is probably easier done. Create a memory DC, select the bitmap into it and use MoveTo/LineTo to draw your lines. Don't forget to clean up after you are done drawing.

> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Life: great graphics, but the gameplay sux. <

GeneralRe: Cannot get the correct cursor position in picture control Pin
z01e4-Feb-09 6:25
z01e4-Feb-09 6:25 
GeneralRe: Cannot get the correct cursor position in picture control Pin
Code-o-mat4-Feb-09 6:43
Code-o-mat4-Feb-09 6:43 
QuestionRe: Cannot get the correct cursor position in picture control Pin
z01e4-Feb-09 7:11
z01e4-Feb-09 7:11 
AnswerRe: Cannot get the correct cursor position in picture control Pin
Code-o-mat4-Feb-09 7:59
Code-o-mat4-Feb-09 7:59 
GeneralRe: Cannot get the correct cursor position in picture control Pin
z01e4-Feb-09 8:42
z01e4-Feb-09 8:42 
GeneralRe: Cannot get the correct cursor position in picture control Pin
Code-o-mat4-Feb-09 10:12
Code-o-mat4-Feb-09 10:12 
GeneralRe: Cannot get the correct cursor position in picture control Pin
z01e4-Feb-09 23:05
z01e4-Feb-09 23:05 
QuestionMemory Leak Pin
rr_ramesh714-Feb-09 1:37
rr_ramesh714-Feb-09 1:37 
QuestionRe: Memory Leak Pin
prasad_som4-Feb-09 1:42
prasad_som4-Feb-09 1:42 
AnswerRe: Memory Leak Pin
rr_ramesh714-Feb-09 2:18
rr_ramesh714-Feb-09 2:18 
GeneralRe: Memory Leak Pin
Cedric Moonen4-Feb-09 2:37
Cedric Moonen4-Feb-09 2:37 
AnswerRe: Memory Leak Pin
prasad_som4-Feb-09 3:32
prasad_som4-Feb-09 3:32 
AnswerRe: Memory Leak Pin
Stuart Dootson4-Feb-09 1:43
professionalStuart Dootson4-Feb-09 1:43 
AnswerRe: Memory Leak Pin
Cedric Moonen4-Feb-09 1:46
Cedric Moonen4-Feb-09 1:46 
GeneralRe: Memory Leak Pin
Code-o-mat4-Feb-09 2:25
Code-o-mat4-Feb-09 2:25 
Questiontesting a ini file in vc++6 Pin
hrishiS4-Feb-09 1:26
hrishiS4-Feb-09 1:26 
AnswerRe: testing a ini file in vc++6 Pin
prasad_som4-Feb-09 1:39
prasad_som4-Feb-09 1: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.