Click here to Skip to main content
15,887,676 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Sockets and Port number Pin
Bill SerGio, The Infomercial King6-Mar-11 2:14
Bill SerGio, The Infomercial King6-Mar-11 2:14 
Questionhelp with tcl/tk in C Pin
basel-bh5-Mar-11 20:53
basel-bh5-Mar-11 20:53 
Questioncase statement in DLGPROC [SOLVED] Pin
goldenrose95-Mar-11 16:36
goldenrose95-Mar-11 16:36 
AnswerRe: case statement in DLGPROC Pin
Andrew Brock5-Mar-11 17:55
Andrew Brock5-Mar-11 17:55 
QuestionWM_COMMAND [SOLVED] Pin
goldenrose95-Mar-11 5:08
goldenrose95-Mar-11 5:08 
AnswerRe: WM_COMMAND Pin
Michael Dunn5-Mar-11 6:58
sitebuilderMichael Dunn5-Mar-11 6:58 
AnswerRe: WM_COMMAND Pin
CPallini5-Mar-11 7:37
mveCPallini5-Mar-11 7:37 
QuestionMoving GDI+ objects question Pin
csrss5-Mar-11 2:13
csrss5-Mar-11 2:13 
How can i move gdi+ objects drawn on window with a mouse? Such objects like: elipse, rectangle. For example, i have an elipse, created with DrawEllipse(), then it filled with GraphicsPath which contains some background color. So for example i have painted a "blue ball" on main application window. Now i am trying to figure out, how can i move this ball within window area with a mouse. I can think of such scenario:

1. On WM_LBUTTONDOWN i am checking if mouse pointer is inside the ball and setting flag to true, if it is
2. And now on WM_MOUSEMOVE, if flag is sat to true, what should i do next? Should i for example, erase this ball and paint it in new position regarding mouse pointer? Or there is a method somewhere to, like, "grab" this ball and literally move it to new position?

I'm just learning GDI+ so this question may look lame, however...
Thanks
011011010110000101100011011010000110100101101110
0110010101110011

AnswerRe: Moving GDI+ objects question Pin
Niklas L5-Mar-11 2:42
Niklas L5-Mar-11 2:42 
GeneralRe: Moving GDI+ objects question Pin
csrss5-Mar-11 3:36
csrss5-Mar-11 3:36 
GeneralRe: Moving GDI+ objects question Pin
Niklas L5-Mar-11 5:39
Niklas L5-Mar-11 5:39 
GeneralRe: Moving GDI+ objects question Pin
csrss5-Mar-11 6:16
csrss5-Mar-11 6:16 
AnswerRe: Moving GDI+ objects question Pin
Andrew Brock5-Mar-11 2:42
Andrew Brock5-Mar-11 2:42 
GeneralRe: Moving GDI+ objects question Pin
csrss5-Mar-11 3:04
csrss5-Mar-11 3:04 
GeneralRe: Moving GDI+ objects question Pin
Andrew Brock5-Mar-11 3:09
Andrew Brock5-Mar-11 3:09 
GeneralRe: Moving GDI+ objects question Pin
csrss5-Mar-11 3:16
csrss5-Mar-11 3:16 
Question[solved] class size doesn't seem to be determined correctly [modified] Pin
Albert Holguin4-Mar-11 18:13
professionalAlbert Holguin4-Mar-11 18:13 
AnswerRe: class size doesn't seem to be determined correctly Pin
Niklas L4-Mar-11 23:14
Niklas L4-Mar-11 23:14 
GeneralRe: class size doesn't seem to be determined correctly Pin
Albert Holguin5-Mar-11 6:45
professionalAlbert Holguin5-Mar-11 6:45 
AnswerRe: class size doesn't seem to be determined correctly Pin
Ozer Karaagac4-Mar-11 23:22
professionalOzer Karaagac4-Mar-11 23:22 
GeneralRe: class size doesn't seem to be determined correctly Pin
Albert Holguin5-Mar-11 6:48
professionalAlbert Holguin5-Mar-11 6:48 
GeneralRe: class size doesn't seem to be determined correctly Pin
Albert Holguin5-Mar-11 10:21
professionalAlbert Holguin5-Mar-11 10:21 
GeneralRe: class size doesn't seem to be determined correctly Pin
Ozer Karaagac5-Mar-11 11:24
professionalOzer Karaagac5-Mar-11 11:24 
GeneralRe: class size doesn't seem to be determined correctly Pin
Albert Holguin5-Mar-11 11:42
professionalAlbert Holguin5-Mar-11 11:42 
AnswerRe: class size doesn't seem to be determined correctly Pin
CPallini4-Mar-11 23:34
mveCPallini4-Mar-11 23:34 

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.