Click here to Skip to main content
15,501,276 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: internationalisation Pin
Sameerkumar Namdeo10-Jun-11 0:08
MemberSameerkumar Namdeo10-Jun-11 0:08 
GeneralRe: internationalisation Pin
Mattias G10-Jun-11 0:26
MemberMattias G10-Jun-11 0:26 
GeneralRe: internationalisation Pin
Kyudos12-Jun-11 11:56
MemberKyudos12-Jun-11 11:56 
AnswerRe: internationalisation Pin
jschell10-Jun-11 13:47
Memberjschell10-Jun-11 13:47 
AnswerRe: internationalisation Pin
Abhi Lahare13-Jun-11 7:49
MemberAbhi Lahare13-Jun-11 7:49 
GeneralRe: internationalisation Pin
Kyudos14-Jun-11 11:50
MemberKyudos14-Jun-11 11:50 
GeneralRe: internationalisation Pin
Abhi Lahare14-Jun-11 12:29
MemberAbhi Lahare14-Jun-11 12:29 
QuestionWant to find Rightmost top point from the CPoint List Pin
Abhijit_Satpute9-Jun-11 9:27
MemberAbhijit_Satpute9-Jun-11 9: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.
AnswerRe: Want to find Rightmost top point from the CPoint List Pin
MicroVirus9-Jun-11 11:03
MemberMicroVirus9-Jun-11 11:03 
AnswerRe: Want to find Rightmost top point from the CPoint List Pin
Richard MacCutchan9-Jun-11 11:32
mveRichard MacCutchan9-Jun-11 11:32 
AnswerRe: Want to find Rightmost top point from the CPoint List Pin
CPallini9-Jun-11 23:09
mveCPallini9-Jun-11 23:09 
AnswerRe: Want to find Rightmost top point from the CPoint List Pin
Stefan_Lang15-Jun-11 3:46
mveStefan_Lang15-Jun-11 3:46 
QuestionUsing C# in C++ Pin
Chris_Green9-Jun-11 0:54
MemberChris_Green9-Jun-11 0:54 
AnswerRe: Using C# in C++ Pin
CPallini9-Jun-11 1:24
mveCPallini9-Jun-11 1:24 
GeneralRe: Using C# in C++ Pin
Chris_Green9-Jun-11 1:54
MemberChris_Green9-Jun-11 1:54 
GeneralRe: Using C# in C++ Pin
Rolf Kristensen9-Jun-11 9:43
MemberRolf Kristensen9-Jun-11 9:43 
GeneralRe: Using C# in C++ Pin
CPallini9-Jun-11 23:03
mveCPallini9-Jun-11 23:03 
AnswerRe: Using C# in C++ Pin
ThatsAlok13-Jun-11 22:14
MemberThatsAlok13-Jun-11 22:14 
AnswerRe: Using C# in C++ Pin
ThatsAlok13-Jun-11 22:16
MemberThatsAlok13-Jun-11 22:16 
QuestionFont Size Problem in Edit Control [SOLVED] Pin
vishalgpt8-Jun-11 20:37
Membervishalgpt8-Jun-11 20:37 
AnswerRe: Font Size Problem in Edit Control Pin
Richard MacCutchan8-Jun-11 22:42
mveRichard MacCutchan8-Jun-11 22:42 
GeneralRe: Font Size Problem in Edit Control Pin
vishalgpt8-Jun-11 23:16
Membervishalgpt8-Jun-11 23:16 
GeneralRe: Font Size Problem in Edit Control Pin
Richard MacCutchan9-Jun-11 5:07
mveRichard MacCutchan9-Jun-11 5:07 
GeneralRe: Font Size Problem in Edit Control Pin
vishalgpt9-Jun-11 8:04
Membervishalgpt9-Jun-11 8:04 
GeneralRe: Font Size Problem in Edit Control Pin
Richard MacCutchan9-Jun-11 8:23
mveRichard MacCutchan9-Jun-11 8:23 

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.