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

C / C++ / MFC

 
GeneralRe: Debug and attach to a process Pin
Michael Dunn15-Mar-04 4:11
sitebuilderMichael Dunn15-Mar-04 4:11 
GeneralHelp!! The format of number in VC++ Pin
Flydian14-Mar-04 15:59
Flydian14-Mar-04 15:59 
GeneralRe: Help!! The format of number in VC++ Pin
Prakash Nadar14-Mar-04 17:10
Prakash Nadar14-Mar-04 17:10 
GeneralRe: Help!! The format of number in VC++ Pin
Ravi Bhavnani14-Mar-04 18:08
professionalRavi Bhavnani14-Mar-04 18:08 
Generaltoolbar separators not displayed in XP style Pin
Mark Walsen14-Mar-04 15:21
Mark Walsen14-Mar-04 15:21 
GeneralRe: toolbar separators not displayed in XP style Pin
Mark Walsen15-Mar-04 7:46
Mark Walsen15-Mar-04 7:46 
Generaldrawing lines that can be moved - please help Pin
aartee14-Mar-04 13:38
aartee14-Mar-04 13:38 
GeneralRe: drawing lines that can be moved - please help Pin
Christian Graus14-Mar-04 15:54
protectorChristian Graus14-Mar-04 15:54 
Point start, end;

You need to store two points, keep track of when the mouse is near them to 'pick them up', and move them when they are being held by the mouse. It's a fairly basic problem, just think about it in terms of what messages you can catch from your MFC app, and how they relate to what you want to do. Your OnPaint will always draw a line between the points, then you just need to catch mouse clicks when the pointer is near a point, move the point in OnMouseMove, and let go when the mouse button is lifted.


Christian

I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
GeneralRe: drawing lines that can be moved - please help Pin
aartee15-Mar-04 3:24
aartee15-Mar-04 3:24 
GeneralRe: drawing lines that can be moved - please help Pin
Christian Graus15-Mar-04 8:13
protectorChristian Graus15-Mar-04 8:13 
GeneralRe: drawing lines that can be moved - please help Pin
aartee16-Mar-04 6:17
aartee16-Mar-04 6:17 
GeneralRe: drawing lines that can be moved - please help Pin
Christian Graus16-Mar-04 9:18
protectorChristian Graus16-Mar-04 9:18 
General1st grade faculty of computer science n00b Pin
lordgreg14-Mar-04 10:44
lordgreg14-Mar-04 10:44 
GeneralRe: 1st grade faculty of computer science n00b Pin
Michael Dunn14-Mar-04 12:54
sitebuilderMichael Dunn14-Mar-04 12:54 
GeneralRe: 1st grade faculty of computer science n00b Pin
lordgreg14-Mar-04 22:34
lordgreg14-Mar-04 22:34 
GeneralRe: 1st grade faculty of computer science n00b Pin
Michael Dunn15-Mar-04 4:10
sitebuilderMichael Dunn15-Mar-04 4:10 
GeneralVisual C++ .NET Disassembly Window Pin
valikac14-Mar-04 7:04
valikac14-Mar-04 7:04 
GeneralRe: Visual C++ .NET Disassembly Window Pin
Antti Keskinen14-Mar-04 10:10
Antti Keskinen14-Mar-04 10:10 
GeneralRe: Visual C++ .NET Disassembly Window Pin
valikac14-Mar-04 11:40
valikac14-Mar-04 11:40 
GeneralRe: Visual C++ .NET Disassembly Window Pin
Antti Keskinen14-Mar-04 21:11
Antti Keskinen14-Mar-04 21:11 
GeneralRe: Visual C++ .NET Disassembly Window Pin
valikac15-Mar-04 5:33
valikac15-Mar-04 5:33 
Generalproblem while deleting heap memory Pin
Member 83996614-Mar-04 6:28
Member 83996614-Mar-04 6:28 
GeneralRe: problem while deleting heap memory Pin
Prakash Nadar14-Mar-04 6:40
Prakash Nadar14-Mar-04 6:40 
GeneralThreads in Classes Pin
mmica14-Mar-04 6:18
mmica14-Mar-04 6:18 
GeneralRe: Threads in Classes Pin
Prakash Nadar14-Mar-04 6:44
Prakash Nadar14-Mar-04 6:44 

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.