Click here to Skip to main content
15,884,473 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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.
AnswerRe: Want to find Rightmost top point from the CPoint List Pin
MicroVirus9-Jun-11 10:03
MicroVirus9-Jun-11 10:03 
AnswerRe: Want to find Rightmost top point from the CPoint List Pin
Richard MacCutchan9-Jun-11 10:32
mveRichard MacCutchan9-Jun-11 10:32 
AnswerRe: Want to find Rightmost top point from the CPoint List Pin
CPallini9-Jun-11 22:09
mveCPallini9-Jun-11 22:09 
AnswerRe: Want to find Rightmost top point from the CPoint List Pin
Stefan_Lang15-Jun-11 2:46
Stefan_Lang15-Jun-11 2:46 
QuestionUsing C# in C++ Pin
Chris_Green8-Jun-11 23:54
Chris_Green8-Jun-11 23:54 
AnswerRe: Using C# in C++ Pin
CPallini9-Jun-11 0:24
mveCPallini9-Jun-11 0:24 
GeneralRe: Using C# in C++ Pin
Chris_Green9-Jun-11 0:54
Chris_Green9-Jun-11 0:54 
GeneralRe: Using C# in C++ Pin
Rolf Kristensen9-Jun-11 8:43
Rolf Kristensen9-Jun-11 8:43 
GeneralRe: Using C# in C++ Pin
CPallini9-Jun-11 22:03
mveCPallini9-Jun-11 22:03 
AnswerRe: Using C# in C++ Pin
ThatsAlok13-Jun-11 21:14
ThatsAlok13-Jun-11 21:14 
AnswerRe: Using C# in C++ Pin
ThatsAlok13-Jun-11 21:16
ThatsAlok13-Jun-11 21:16 
QuestionFont Size Problem in Edit Control [SOLVED] Pin
vishalgpt8-Jun-11 19:37
vishalgpt8-Jun-11 19:37 
AnswerRe: Font Size Problem in Edit Control Pin
Richard MacCutchan8-Jun-11 21:42
mveRichard MacCutchan8-Jun-11 21:42 
GeneralRe: Font Size Problem in Edit Control Pin
vishalgpt8-Jun-11 22:16
vishalgpt8-Jun-11 22:16 
GeneralRe: Font Size Problem in Edit Control Pin
Richard MacCutchan9-Jun-11 4:07
mveRichard MacCutchan9-Jun-11 4:07 
GeneralRe: Font Size Problem in Edit Control Pin
vishalgpt9-Jun-11 7:04
vishalgpt9-Jun-11 7:04 
GeneralRe: Font Size Problem in Edit Control Pin
Richard MacCutchan9-Jun-11 7:23
mveRichard MacCutchan9-Jun-11 7: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.