Click here to Skip to main content
15,902,275 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
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 
Well, if you load a new bitmap into your picture control then yes, the lines will be gone. And for the memdc, you can do something like this:
CDC MemDC;
MemDC.CreateCompatibleDC(dc_of_picture_control);
CBitmap *origBitmap = MemDC.SelectObject(pointer_to_bitmap_you_want_to_draw_to);
MemDC.MoveTo(0, 0);
MemDC.LineTo(line_to_x, line_to_y);
MemDC.SelectObject(origBitmap);
MemDC.DeleteDC();


> 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. <

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 
GeneralRe: testing a ini file in vc++6 Pin
hrishiS4-Feb-09 2:47
hrishiS4-Feb-09 2:47 
GeneralRe: testing a ini file in vc++6 Pin
krmed4-Feb-09 2:54
krmed4-Feb-09 2:54 

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.