Click here to Skip to main content
15,921,622 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to redirect paint messages? Pin
Joel Lucsy27-Dec-01 5:41
Joel Lucsy27-Dec-01 5:41 
GeneralRe: How to redirect paint messages? Pin
Diarrhio27-Dec-01 18:58
Diarrhio27-Dec-01 18:58 
AnswerRe: How to redirect paint messages? Pin
567890123426-Dec-01 0:48
567890123426-Dec-01 0:48 
GeneralAuto Disconnect Pin
Brian C Hart24-Dec-01 10:57
professionalBrian C Hart24-Dec-01 10:57 
GeneralRe: Auto Disconnect Pin
Masaaki Onishi25-Dec-01 6:33
Masaaki Onishi25-Dec-01 6:33 
GeneralString Library & Appending Integer :: C++ Pin
valikac24-Dec-01 8:37
valikac24-Dec-01 8:37 
GeneralRe: String Library & Appending Integer :: C++ Pin
Michael Dunn24-Dec-01 13:58
sitebuilderMichael Dunn24-Dec-01 13:58 
GeneralRe: String Library & Appending Integer :: C++ Pin
valikac24-Dec-01 14:38
valikac24-Dec-01 14:38 
GeneralProblems with CString and fscanf Pin
José Luis Sogorb24-Dec-01 7:47
José Luis Sogorb24-Dec-01 7:47 
GeneralRe: Problems with CString and fscanf Pin
Michael Dunn24-Dec-01 14:00
sitebuilderMichael Dunn24-Dec-01 14:00 
GeneralRe: Problems with CString and fscanf Pin
José Luis Sogorb25-Dec-01 5:51
José Luis Sogorb25-Dec-01 5:51 
GeneralRe: Problems with CString and fscanf Pin
Michael Dunn25-Dec-01 6:05
sitebuilderMichael Dunn25-Dec-01 6:05 
GeneralLPT functions !!! Pin
Hadi Rezaee24-Dec-01 7:44
Hadi Rezaee24-Dec-01 7:44 
GeneralControl scrollbars in an owner draw ListView Pin
24-Dec-01 5:48
suss24-Dec-01 5:48 
GeneralRe: Control scrollbars in an owner draw ListView Pin
AnonymousBabe@usa.net24-Dec-01 15:31
AnonymousBabe@usa.net24-Dec-01 15:31 
GeneralLinux and visual c++ Pin
Jon Newman24-Dec-01 1:38
Jon Newman24-Dec-01 1:38 
GeneralRe: Linux and visual c++ Pin
Erik Funkenbusch25-Dec-01 21:07
Erik Funkenbusch25-Dec-01 21:07 
GeneralPb with updating my desktop Pin
23-Dec-01 22:23
suss23-Dec-01 22:23 
GeneralRe: Pb with updating my desktop Pin
Ravi Bhavnani25-Dec-01 6:19
professionalRavi Bhavnani25-Dec-01 6:19 
GeneralTapi - (1 server n-clients) Pin
Sandeep Shetty23-Dec-01 21:04
Sandeep Shetty23-Dec-01 21:04 
GeneralRandom points in a polygon Pin
Paul Selormey23-Dec-01 20:17
Paul Selormey23-Dec-01 20:17 
GeneralRe: Random points in a polygon Pin
Christian Graus25-Dec-01 11:13
protectorChristian Graus25-Dec-01 11:13 
GeneralRe: Random points in a polygon Pin
Paul Selormey25-Dec-01 13:44
Paul Selormey25-Dec-01 13:44 
GeneralRe: Random points in a polygon Pin
Christian Graus26-Dec-01 12:41
protectorChristian Graus26-Dec-01 12:41 
GeneralRe: Random points in a polygon Pin
Paul Selormey26-Dec-01 13:49
Paul Selormey26-Dec-01 13:49 
Hello Christian,
Thanks for the suggestions. Currently, I am doing this
1. Get the bounding box of the polygon and use it to generate the random points.
2. Create a region CRgn out of the polygon and test if the point lies in the region PtInRegion, if not generate another till I get the required number of points.

The application, however, requires a lot of speed and it deals with many polygons. I will try your suggestions too to see which is faster and less memory consuming.

Best regards,
Paul.


Paul Selormey, Bsc (Elect Eng), MSc (Mobile Communication) is currently Windows open source developer in Japan, and open for programming contract anywhere!

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.