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:
parent
74f9630bcc
commit
ad6249422b
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue