Click here to Skip to main content
16,007,163 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: msi file Pin
deeps_cute17-Jun-07 21:24
deeps_cute17-Jun-07 21:24 
GeneralRe: msi file Pin
Hamid_RT17-Jun-07 22:26
Hamid_RT17-Jun-07 22:26 
QuestionSliderbar Problem Pin
scody17-Jun-07 20:36
scody17-Jun-07 20:36 
AnswerRe: Sliderbar Problem Pin
Randor 18-Jun-07 4:23
professional Randor 18-Jun-07 4:23 
QuestionHow to make Intelligent connectors using VC++ Pin
whatitis17-Jun-07 19:09
whatitis17-Jun-07 19:09 
AnswerRe: How to make Intelligent connectors using VC++ Pin
Nelek17-Jun-07 22:09
protectorNelek17-Jun-07 22:09 
GeneralRe: How to make Intelligent connectors using VC++ Pin
whatitis17-Jun-07 23:34
whatitis17-Jun-07 23:34 
GeneralRe: How to make Intelligent connectors using VC++ Pin
Nelek18-Jun-07 0:06
protectorNelek18-Jun-07 0:06 
I think it will be easier if you create 2 matrix of points (one for each direction: Vert and Horz) with the index of the points (I mean: 00, 01, 02.. 10, 11, 12.. m0, m1..mn).

Afterwards you can correct the position of the click with a round to your grid unit/separation between lines (5 pixels for example). And determine the indexes of the line ends.

But yes, it will be a lot of work and considerations. The lines can be saved in a CList (take a look to my article "An addition to the Smart List" and the previous one I based mine), this will allow you to save structures or another lists to sae the corners of the lines. But you will need to check all to determine which line are you chosing to delete or modify.

I don't know how visio makes it, but I guess should be something like that.

I would make a class for the lines with methodes like IsPointInLine (CPoint point) to pass the position of the click or the mouse movement, variables like CPoint cpStart, cpEnd a list of corners... and so on.

I'm sorry not being more concret, but I will try to help you as long as I can (at least with the ideas or algorithms).

If I have another idea I will say it.

EDIT: To improve methodes I would make the list with objects but all the methodes with pointers.

Greetings.

--------
M.D.V.

If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?

GeneralRe: How to make Intelligent connectors using VC++ Pin
whatitis18-Jun-07 18:37
whatitis18-Jun-07 18:37 
Questionhow to submit a document in mysql Pin
p_17-Jun-07 18:48
p_17-Jun-07 18:48 
QuestionUnable to start program on VC++ Pin
Tuongnd17-Jun-07 17:35
Tuongnd17-Jun-07 17:35 
AnswerRe: Unable to start program on VC++ Pin
S Douglas17-Jun-07 18:17
professionalS Douglas17-Jun-07 18:17 
GeneralRe: Unable to start program on VC++ Pin
Tuongnd17-Jun-07 19:17
Tuongnd17-Jun-07 19:17 
QuestionRe: Unable to start program on VC++ Pin
Hamid_RT17-Jun-07 20:44
Hamid_RT17-Jun-07 20:44 
AnswerRe: Unable to start program on VC++ Pin
Tuongnd17-Jun-07 21:06
Tuongnd17-Jun-07 21:06 
GeneralRe: Unable to start program on VC++ Pin
Tuongnd17-Jun-07 21:56
Tuongnd17-Jun-07 21:56 
GeneralRe: Unable to start program on VC++ Pin
Hamid_RT17-Jun-07 22:35
Hamid_RT17-Jun-07 22:35 
AnswerRe: Unable to start program on VC++ Pin
Paresh Chitte17-Jun-07 18:43
Paresh Chitte17-Jun-07 18:43 
QuestionCompiling Win32 detours library using VC++ 2005 Express Pin
tmp017-Jun-07 15:44
tmp017-Jun-07 15:44 
AnswerRe: Compiling Win32 detours library using VC++ 2005 Express Pin
Mark Salsbery17-Jun-07 17:03
Mark Salsbery17-Jun-07 17:03 
GeneralRe: Compiling Win32 detours library using VC++ 2005 Express Pin
tmp018-Jun-07 0:45
tmp018-Jun-07 0:45 
GeneralRe: Compiling Win32 detours library using VC++ 2005 Express Pin
Mark Salsbery18-Jun-07 4:52
Mark Salsbery18-Jun-07 4:52 
QuestionISampleGrabber and ActiveMovie Window Problem Pin
Akin Ocal17-Jun-07 13:05
Akin Ocal17-Jun-07 13:05 
QuestionConnecting to FTP site Pin
frqftgbdafr17-Jun-07 8:59
frqftgbdafr17-Jun-07 8:59 
AnswerRe: Connecting to FTP site Pin
Mark Salsbery17-Jun-07 9:05
Mark Salsbery17-Jun-07 9:05 

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.