Click here to Skip to main content
15,891,621 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Gantt chart Pin
Jokcy17-Jun-11 2:55
Jokcy17-Jun-11 2:55 
AnswerRe: Gantt chart Pin
ThatsAlok13-Jun-11 20:51
ThatsAlok13-Jun-11 20:51 
GeneralRe: Gantt chart Pin
Jokcy17-Jun-11 2:58
Jokcy17-Jun-11 2:58 
Question[Win32]Scroll bitmap Pin
Member 296547110-Jun-11 12:47
Member 296547110-Jun-11 12:47 
AnswerRe: [Win32]Scroll bitmap Pin
Mark Salsbery10-Jun-11 16:44
Mark Salsbery10-Jun-11 16:44 
Question[Win32] Threads communication Pin
Member 296547110-Jun-11 12:45
Member 296547110-Jun-11 12:45 
AnswerRe: [Win32] Threads communication Pin
Albert Holguin10-Jun-11 13:31
professionalAlbert Holguin10-Jun-11 13:31 
AnswerRe: [Win32] Threads communication Pin
lijiantao11-Jun-11 5:32
lijiantao11-Jun-11 5:32 
QuestionMFC Multiple document types in SDI application Pin
Mattias G10-Jun-11 0:55
Mattias G10-Jun-11 0:55 
QuestionDebugging application minidump using windbg Pin
Prasann Mayekar9-Jun-11 23:04
Prasann Mayekar9-Jun-11 23:04 
AnswerRe: Debugging application minidump using windbg Pin
Sarath C10-Jun-11 2:27
Sarath C10-Jun-11 2:27 
QuestionC++ expression evaluation. Pin
Sameerkumar Namdeo9-Jun-11 22:57
Sameerkumar Namdeo9-Jun-11 22:57 
AnswerRe: C++ expression evaluation. Pin
CPallini10-Jun-11 0:25
mveCPallini10-Jun-11 0:25 
AnswerRe: C++ expression evaluation. Pin
Luc Pattyn10-Jun-11 1:03
sitebuilderLuc Pattyn10-Jun-11 1:03 
AnswerRe: C++ expression evaluation. Pin
Sameerkumar Namdeo12-Jun-11 20:39
Sameerkumar Namdeo12-Jun-11 20:39 
AnswerRe: C++ expression evaluation. Pin
Niklas L12-Jun-11 21:26
Niklas L12-Jun-11 21:26 
Questioninternationalisation Pin
Kyudos9-Jun-11 12:52
Kyudos9-Jun-11 12:52 
AnswerRe: internationalisation Pin
Sameerkumar Namdeo9-Jun-11 23:08
Sameerkumar Namdeo9-Jun-11 23:08 
GeneralRe: internationalisation Pin
Mattias G9-Jun-11 23:26
Mattias G9-Jun-11 23:26 
GeneralRe: internationalisation Pin
Kyudos12-Jun-11 10:56
Kyudos12-Jun-11 10:56 
AnswerRe: internationalisation Pin
jschell10-Jun-11 12:47
jschell10-Jun-11 12:47 
AnswerRe: internationalisation Pin
Abhi Lahare13-Jun-11 6:49
Abhi Lahare13-Jun-11 6:49 
GeneralRe: internationalisation Pin
Kyudos14-Jun-11 10:50
Kyudos14-Jun-11 10:50 
GeneralRe: internationalisation Pin
Abhi Lahare14-Jun-11 11:29
Abhi Lahare14-Jun-11 11:29 
QuestionWant to find Rightmost top point from the CPoint List Pin
Abhijit_Satpute9-Jun-11 8:27
Abhijit_Satpute9-Jun-11 8:27 
I have created list of points.

CList<CPoint, CPoint> m_PointList;


m_PointList contains the coordinates from the screen display.
I want to find the Right most top point from the list.

For e.g List contains following points:

1)(1263,643)
2)(1258,276)
3)(1225,266)
4)(1180,257)
5)(990,241)
6)(835,239)
7)(935,705)
8)(1094,691)
9)(1258,655)



Please consider the screen coordinate system. i.e X increases from left to right and Y increase from top to bottom.

With the above input points, the output of the program should be (1258,276).
In the above mentioned points the right most point is 1263 but the corresponding y co-ordinate is 643, which is greater than the 2nd point's y co-ordinate for which the x co-ordinate is 1258.
Hence as per the display, the right most top point is (1258,643).

Please suggest the algorithm to be used.

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.