GetWindowRect and Mouse position, a bug??

Y

ycyclop

Hi,
I'm trying to find the coordiantes of a mouse event in the window
position. Everyone wrote on privious letters:
Use the GetViewRect, GetWindowRect, do the scaling and you have your
answer.
All that is true ONLY if there are no rulers and no scrollbars visible
in the control.
GetWindowRect gives the whole window rect, including all rules and
scrollbars.
GetViewRect gives the correct visible drawing area rectangle.
So scaling between these two is wrong. they do not relate to the same
rectangle.
Is there a way I can get the drawing area window rect and from there I
can scale and find the mouse position?
Thank you
-- ycyclop
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top