LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default RangeFromPoints

I am trying to discover which cell is under the mouse using automation calls
from C++. I take the mouse co-ordinates, which are relative to my Excel
window, add in the windows screen co-ordinates to get a screen position and
call RangeFromPoints. However, the range returned is 'out' by a bit. On my
1600*1200 screen it is out by 32X and 42Y. This is constant regardless of my
window positions, both the main window and the workbook window and is also
constant across the workbook so doesn't seem to be a scaling issue or an
offset issue. This difference is independant of screen resolution but does
change (not linearly) with the zoom. On a second computer running 1280*960
running Office XP rather than Office 2003 the difference was 32X,49Y????

Has anybody any idea what I could be missing.

Thanks
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 06:45 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"