Don't use GetMessagePos(); it returns the same LPARAM format... (and the POINT in MSG is in screen coordinates, which means we need to call the potentially-erroring ScreenToClient(), and /even then/ we would need to hack up the message pump to get that point out, which is not guaranteed if someone takes our Table code and uses it in their own Windows program, or if I even export this Table for such use!).

This commit is contained in:
Pietro Gagliardi 2014-12-04 10:17:38 -05:00
parent 74f9630bcc
commit ad6249422b
1 changed files with 0 additions and 1 deletions

View File

@ -13,7 +13,6 @@ static rowcol clientCoordToRowColumn(struct table *t, POINT pt)
}
// same as client coordinates, but stored in a lParam (like the various mouse messages provide)
// TODO should we use GetMessagePos() instead?
static rowcol lParamToRowColumn(struct table *t, LPARAM lParam)
{
POINT pt;