Click here to Skip to main content
15,887,746 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: graph include? Pin
David Crow26-Sep-07 2:57
David Crow26-Sep-07 2:57 
AnswerRe: graph include? Pin
Nishad S26-Sep-07 2:40
Nishad S26-Sep-07 2:40 
GeneralRe: graph include? Pin
srvsah26-Sep-07 2:44
srvsah26-Sep-07 2:44 
GeneralRe: graph include? Pin
Nishad S26-Sep-07 2:46
Nishad S26-Sep-07 2:46 
AnswerRe: graph include? Pin
toxcct26-Sep-07 2:41
toxcct26-Sep-07 2:41 
AnswerRe: graph include? Pin
Hamid_RT26-Sep-07 3:17
Hamid_RT26-Sep-07 3:17 
QuestionCapturing Mouse event on picture box Pin
trioum26-Sep-07 1:32
trioum26-Sep-07 1:32 
AnswerRe: Capturing Mouse event on picture box Pin
Nelek26-Sep-07 1:39
protectorNelek26-Sep-07 1:39 
One way to do it without many difficulties is to walk around.

You can get without difficulties the mouse messages/events in the dialog box. And you have a parameter CPoint point that gives you where the click was made or the pointer is.

then...

Just take the coordinates of the bounding square of your picture and ask if you are inside of it. I mean:

CRect rectPict;
rectPict.top = YourPicture.top;
rectPict.bottom = YourPicture.bottom;
rectPict.left = YourPicture.left;
rectPict.right = YourPicture.right;

if (rectPict.PtInRect (point))
{
//Do whatever you want while over the picture
}
else
{
//Do other things while in the rest of dialog
}


Hope it helps

Greetings.

--------
M.D.V.

If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?

Help me to understand what I'm saying, and I'll explain it better to you

Wink | ;)

GeneralRe: Capturing Mouse event on picture box Pin
trioum26-Sep-07 2:27
trioum26-Sep-07 2:27 
GeneralRe: Capturing Mouse event on picture box Pin
David Crow26-Sep-07 2:40
David Crow26-Sep-07 2:40 
AnswerRe: Capturing Mouse event on picture box Pin
Nishad S26-Sep-07 2:42
Nishad S26-Sep-07 2:42 
Questionpls help.....! Pin
krishna Vuppala25-Sep-07 23:48
krishna Vuppala25-Sep-07 23:48 
AnswerRe: pls help.....! Pin
Hamid_RT26-Sep-07 0:30
Hamid_RT26-Sep-07 0:30 
AnswerRe: pls help.....! Pin
KarstenK26-Sep-07 0:34
mveKarstenK26-Sep-07 0:34 
GeneralRe: pls help.....! Pin
David Crow26-Sep-07 2:44
David Crow26-Sep-07 2:44 
GeneralRe: pls help.....! Pin
KarstenK26-Sep-07 2:53
mveKarstenK26-Sep-07 2:53 
GeneralRe: pls help.....! Pin
David Crow26-Sep-07 2:58
David Crow26-Sep-07 2:58 
AnswerRe: pls help.....! Pin
jhwurmbach26-Sep-07 1:22
jhwurmbach26-Sep-07 1:22 
GeneralRe: pls help.....! Pin
krishna Vuppala26-Sep-07 1:29
krishna Vuppala26-Sep-07 1:29 
GeneralRe: pls help.....! Pin
jhwurmbach26-Sep-07 1:32
jhwurmbach26-Sep-07 1:32 
GeneralRe: pls help.....! Pin
krishna Vuppala26-Sep-07 1:53
krishna Vuppala26-Sep-07 1:53 
GeneralRe: pls help.....! Pin
jhwurmbach26-Sep-07 2:01
jhwurmbach26-Sep-07 2:01 
GeneralRe: pls help.....! Pin
krishna Vuppala26-Sep-07 2:15
krishna Vuppala26-Sep-07 2:15 
GeneralRe: pls help.....! Pin
ThatsAlok26-Sep-07 19:38
ThatsAlok26-Sep-07 19:38 
GeneralRe: pls help.....! Pin
David Crow26-Sep-07 2:48
David Crow26-Sep-07 2:48 

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.