While implementing selection using the mouse for my textbox i have realized, that the windows text cursor seems to have some offset from its center bar to the hotspot, its actually exactly 2px to the left. I can show you the problem with images:
Image 1: The cursor is at the position WM_MOUSEMOVE gives 0 and moving the mouse one pixel to the left makes it show the sizing cursor (so its out of the client area)
As you can see the center bar of the cursor is clearly not at this point.
Image 2: The cursor is again at position 0, but this time its the default cursor
This cursor correctly points to the beginning of the client area.
Is there a way to determine this offset? Is it the same for xp, vista, win7, win8? This seems to be a bit annoying in my opinion...