Click here to Skip to main content
15,919,132 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Getting path count Pin
Code-o-mat15-Sep-10 1:55
Code-o-mat15-Sep-10 1:55 
QuestionC2259 Pin
T.RATHA KRISHNAN14-Sep-10 22:29
T.RATHA KRISHNAN14-Sep-10 22:29 
AnswerRe: C2259 Pin
Niklas L14-Sep-10 22:33
Niklas L14-Sep-10 22:33 
GeneralRe: C2259 Pin
T.RATHA KRISHNAN14-Sep-10 22:44
T.RATHA KRISHNAN14-Sep-10 22:44 
GeneralRe: C2259 Pin
Niklas L14-Sep-10 22:59
Niklas L14-Sep-10 22:59 
AnswerRe: C2259 Pin
Cedric Moonen14-Sep-10 22:43
Cedric Moonen14-Sep-10 22:43 
QuestionHit testing Pin
Benjamin Bruno14-Sep-10 20:18
Benjamin Bruno14-Sep-10 20:18 
AnswerRe: Hit testing [modified] Pin
_AnsHUMAN_ 14-Sep-10 20:45
_AnsHUMAN_ 14-Sep-10 20:45 
one way would be to store the centers and radius of circle(In case of ellipse it depends on the length of the major and minor chords) and when the mouse is clicked you can get the point of click and check if the coordinates are within the range of the circle or the ellipse.
For ex: in case of a circle, if you have a circle with center at (100,100) and radius as 100 then if the user clicks on x,y then check if the new points are still in the space occupied by the circle. In other words you can check if x,y both lie between 0 and 200
There will be some refinements required though with this approach.

EDIT: BTW circle is a special case for ellipse with the major and minor chords of the same length, called the radius in a circle.
I am a HUMAN. I have that keyword (??? too much) in my name........
Wink | ;-) _AnsHUMAN_b>

modified on Wednesday, September 15, 2010 2:54 AM

AnswerRe: Hit testing Pin
CPallini14-Sep-10 20:59
mveCPallini14-Sep-10 20:59 
QuestionHow to use the C++ dynamic load DLL which compiles with C# Pin
ZhiLiangLin14-Sep-10 15:37
ZhiLiangLin14-Sep-10 15:37 
AnswerRe: How to use the C++ dynamic load DLL which compiles with C# Pin
Garth J Lancaster14-Sep-10 16:05
professionalGarth J Lancaster14-Sep-10 16:05 
AnswerRe: How to use the C++ dynamic load DLL which compiles with C# Pin
_AnsHUMAN_ 14-Sep-10 18:36
_AnsHUMAN_ 14-Sep-10 18:36 
Questiondynamic jpg photo Pin
benams14-Sep-10 9:45
benams14-Sep-10 9:45 
AnswerRe: dynamic jpg photo Pin
Chris Losinger14-Sep-10 9:56
professionalChris Losinger14-Sep-10 9:56 
GeneralRe: dynamic jpg photo Pin
Emilio Garavaglia14-Sep-10 22:51
Emilio Garavaglia14-Sep-10 22:51 
GeneralRe: dynamic jpg photo Pin
Chris Losinger15-Sep-10 0:43
professionalChris Losinger15-Sep-10 0:43 
QuestionRe: dynamic jpg photo Pin
David Crow14-Sep-10 9:58
David Crow14-Sep-10 9:58 
AnswerRe: dynamic jpg photo Pin
Cool_Dev14-Sep-10 18:57
Cool_Dev14-Sep-10 18:57 
AnswerRe: dynamic jpg photo Pin
Sameerkumar Namdeo15-Sep-10 20:15
Sameerkumar Namdeo15-Sep-10 20:15 
Questiongetting contents from USB drive letter Pin
Subrat Patnaik14-Sep-10 2:19
Subrat Patnaik14-Sep-10 2:19 
AnswerRe: getting contents from USB drive letter Pin
_AnsHUMAN_ 14-Sep-10 2:29
_AnsHUMAN_ 14-Sep-10 2:29 
GeneralRe: getting contents from USB drive letter Pin
Subrat Patnaik14-Sep-10 3:03
Subrat Patnaik14-Sep-10 3:03 
QuestionRe: getting contents from USB drive letter Pin
David Crow14-Sep-10 3:33
David Crow14-Sep-10 3:33 
AnswerRe: getting contents from USB drive letter Pin
Subrat Patnaik14-Sep-10 4:17
Subrat Patnaik14-Sep-10 4:17 
AnswerRe: getting contents from USB drive letter Pin
David Crow14-Sep-10 4:19
David Crow14-Sep-10 4:19 

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.