Skip to content

Commit

Permalink
static: Use GET_[X|Y]_LPARAM to extract coordinates from LPARAM
Browse files Browse the repository at this point in the history
  • Loading branch information
lxn committed Nov 28, 2019
1 parent 07fafbe commit c202aa9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion static.go
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ func staticWndProc(hwnd win.HWND, msg uint32, wp, lp uintptr) uintptr {
Message: msg,
WParam: wp,
LParam: lp,
Pt: win.POINT{int32(win.LOWORD(uint32(lp))), int32(win.HIWORD(uint32(lp)))},
Pt: win.POINT{int32(win.GET_X_LPARAM(lp)), int32(win.GET_Y_LPARAM(lp))},
}

return s.group.toolTip.SendMessage(win.TTM_RELAYEVENT, 0, uintptr(unsafe.Pointer(&m)))
Expand Down

0 comments on commit c202aa9

Please sign in to comment.