Click here to Skip to main content
15,915,048 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Style/method question regarding dialog updates/calcs Pin
Naveen11-Feb-07 23:19
Naveen11-Feb-07 23:19 
AnswerRe: Style/method question regarding dialog updates/calcs Pin
jhwurmbach11-Feb-07 23:20
jhwurmbach11-Feb-07 23:20 
QuestionShellExecute Pin
si_6911-Feb-07 22:37
si_6911-Feb-07 22:37 
AnswerRe: ShellExecute Pin
Eytukan11-Feb-07 22:52
Eytukan11-Feb-07 22:52 
AnswerRe: ShellExecute Pin
si_6912-Feb-07 1:11
si_6912-Feb-07 1:11 
AnswerRe: ShellExecute Pin
David Crow12-Feb-07 2:36
David Crow12-Feb-07 2:36 
QuestionSelecting polygons Pin
m.dietz11-Feb-07 22:20
m.dietz11-Feb-07 22:20 
AnswerRe: Selecting polygons Pin
Cedric Moonen11-Feb-07 23:11
Cedric Moonen11-Feb-07 23:11 
Finding if a point lies within a polygon is not an easy task. There are some algorithms that exist and you can have a look here[^] for example (or just google for "point inside polygon").

What I would typically do, is adding a method to your polygon to check if a point is inside itself (something like IsPointInside(CPoint point) ). Then, you can iterate through your polygon list and call this function for each polygon and stop once you find one.


Cédric Moonen
Software developer

Charting control [v1.1]

AnswerRe: Selecting polygons Pin
beko11-Feb-07 23:43
beko11-Feb-07 23:43 
GeneralRe: Selecting polygons Pin
m.dietz12-Feb-07 1:02
m.dietz12-Feb-07 1:02 
AnswerRe: Selecting polygons Pin
Mark Salsbery12-Feb-07 6:43
Mark Salsbery12-Feb-07 6:43 
QuestionNow, how to delete? Pin
Astricks11-Feb-07 22:06
Astricks11-Feb-07 22:06 
AnswerRe: Now, how to delete? [modified] Pin
jhwurmbach11-Feb-07 22:27
jhwurmbach11-Feb-07 22:27 
GeneralRe: Now, how to delete? Pin
Astricks11-Feb-07 22:48
Astricks11-Feb-07 22:48 
GeneralRe: Now, how to delete? Pin
jhwurmbach11-Feb-07 23:04
jhwurmbach11-Feb-07 23:04 
GeneralRe: Now, how to delete? Pin
Astricks11-Feb-07 22:50
Astricks11-Feb-07 22:50 
GeneralRe: Now, how to delete? Pin
Hamid_RT12-Feb-07 6:56
Hamid_RT12-Feb-07 6:56 
GeneralRe: Now, how to delete? Pin
jhwurmbach12-Feb-07 6:58
jhwurmbach12-Feb-07 6:58 
GeneralRe: Now, how to delete? Pin
Hamid_RT12-Feb-07 7:15
Hamid_RT12-Feb-07 7:15 
GeneralRe: Now, how to delete? Pin
toxcct12-Feb-07 20:25
toxcct12-Feb-07 20:25 
AnswerRe: Now, how to delete? Pin
toxcct11-Feb-07 22:28
toxcct11-Feb-07 22:28 
GeneralRe: Now, how to delete? Pin
Astricks11-Feb-07 22:48
Astricks11-Feb-07 22:48 
Questionclass library Pin
dalbhide bipin11-Feb-07 21:03
dalbhide bipin11-Feb-07 21:03 
AnswerRe: class library Pin
Cedric Moonen11-Feb-07 21:10
Cedric Moonen11-Feb-07 21:10 
GeneralRe: class library Pin
dalbhide bipin11-Feb-07 21:37
dalbhide bipin11-Feb-07 21:37 

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.