I mentioned this problem to Jacco some time back, but I thought I'd post it...
I noticed a while back that the click/pen position was off (in windows mode, not on the actual PDA). I fixed it by putting in lines 17 - 19 in the EasyCE.cpp file within the update() funtion.
All this does is account for the fact that windows adds 4 pixels for the window border. Once I did this, my coords were dead on.
(For a while -- and maybe still somewhat -- I thought it was just me. But I have reproduced this problem on Win98, NT, and now XP.)
Anyhow, I hope this helps anyone else that may have come across this situation.
Andre
I noticed a while back that the click/pen position was off (in windows mode, not on the actual PDA). I fixed it by putting in lines 17 - 19 in the EasyCE.cpp file within the update() funtion.
- Code:
void update( bool updscr )
{
if (updscr) updatedisplay();
#ifdef _WIN32_WCE
MSG msg;
while (PeekMessage( &msg;, 0, 0, 0, PM_NOREMOVE ) == TRUE)
{
GetMessage( &msg;, 0, 0, 0 );
TranslateMessage( &msg; );
DispatchMessage( &msg; );
}
#else
POINT p;
RECT r;
GetWindowRect( hWnd, &r; );
GetCursorPos( &p; );
#ifndef _WIN32_WCE
p.x -= 4; p.y -= 4;
#endif
mxpos = p.x - r.left;
All this does is account for the fact that windows adds 4 pixels for the window border. Once I did this, my coords were dead on.
(For a while -- and maybe still somewhat -- I thought it was just me. But I have reproduced this problem on Win98, NT, and now XP.)
Anyhow, I hope this helps anyone else that may have come across this situation.
Andre