PretranslageMessage...

I have a dialog which has three buttons in it.

In order to know the mouse position when the point is in the buttons,
I put the PreTranslateMessage in the dialog.

Then, I am able to know the mouse position even though the point is in a button.

However, I can't figure out the mouse position(point) is in which button
because lparam from PreTranslateMessage says local position of the button.

I hope you understand what I mean.

Thanks.
Thanks andywestken. It helps me out.
Topic archived. No new replies allowed.