Click here to Skip to main content
15,892,059 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Generic List and n-criteria sorting Pin
David Crow27-Oct-05 9:38
David Crow27-Oct-05 9:38 
GeneralRe: Generic List and n-criteria sorting Pin
Mariano Lopez-Gappa27-Oct-05 16:55
Mariano Lopez-Gappa27-Oct-05 16:55 
GeneralRe: Generic List and n-criteria sorting Pin
John M. Drescher27-Oct-05 20:36
John M. Drescher27-Oct-05 20:36 
GeneralRe: Generic List and n-criteria sorting Pin
Mariano Lopez-Gappa28-Oct-05 4:54
Mariano Lopez-Gappa28-Oct-05 4:54 
AnswerRe: Generic List and n-criteria sorting Pin
carks27-Oct-05 10:17
carks27-Oct-05 10:17 
Questionmath question Pin
Manu_8127-Oct-05 7:55
Manu_8127-Oct-05 7:55 
AnswerRe: math question Pin
toxcct27-Oct-05 8:12
toxcct27-Oct-05 8:12 
AnswerRe: math question Pin
Bob Flynn27-Oct-05 9:40
Bob Flynn27-Oct-05 9:40 
My trig is rusty, but I think this will get you there.

Given the origin of your circle is at (Ox,Oy) and your mouse click is at (Mx, My) then your x,y pair for your circle is

X=Mx - Ox
Y=My - Oy

The angle between the line create by that point and the X axis would be
A = atan2(Y,X).

Now you want the point on your circle (Cx, Cy)
Cy = r * sin(A) + Oy
Cx = r * cos(A) + Ox


GeneralRe: math question Pin
Manu_8127-Oct-05 10:19
Manu_8127-Oct-05 10:19 
QuestionInscrease width of columns in datagrid Pin
cppdotnet27-Oct-05 7:55
cppdotnet27-Oct-05 7:55 
AnswerRe: Inscrease width of columns in datagrid Pin
Chris Losinger27-Oct-05 8:52
professionalChris Losinger27-Oct-05 8:52 
GeneralRe: Inscrease width of columns in datagrid Pin
cppdotnet27-Oct-05 9:04
cppdotnet27-Oct-05 9:04 
GeneralI tried Pin
cppdotnet27-Oct-05 9:10
cppdotnet27-Oct-05 9:10 
QuestionMultibyte strings not displaying correctly Pin
Ian Bowler27-Oct-05 7:00
Ian Bowler27-Oct-05 7:00 
AnswerRe: Multibyte strings not displaying correctly Pin
Prakash Nadar27-Oct-05 8:35
Prakash Nadar27-Oct-05 8:35 
GeneralRe: Multibyte strings not displaying correctly Pin
Ian Bowler27-Oct-05 8:45
Ian Bowler27-Oct-05 8:45 
QuestionRe: Multibyte strings not displaying correctly Pin
Prakash Nadar27-Oct-05 16:16
Prakash Nadar27-Oct-05 16:16 
QuestionConverting try/catch to __try/something Pin
integerous27-Oct-05 6:31
integerous27-Oct-05 6:31 
AnswerRe: Converting try/catch to __try/something Pin
toxcct27-Oct-05 7:43
toxcct27-Oct-05 7:43 
GeneralRe: Converting try/catch to __try/something Pin
integerous27-Oct-05 12:57
integerous27-Oct-05 12:57 
QuestionSecure IPC Pin
Chintoo72327-Oct-05 5:59
Chintoo72327-Oct-05 5:59 
AnswerRe: Secure IPC Pin
ThatsAlok27-Oct-05 22:25
ThatsAlok27-Oct-05 22:25 
QuestionWhat's this? Pin
Le Sourcier27-Oct-05 5:41
Le Sourcier27-Oct-05 5:41 
Question Hash string function that keeps compare properties Pin
Kochise27-Oct-05 5:27
Kochise27-Oct-05 5:27 
AnswerRe: Hash string function that keeps compare properties Pin
Chris Losinger27-Oct-05 7:30
professionalChris Losinger27-Oct-05 7:30 

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.