5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-09 01:49:43 +08:00
wails/v3/internal/w32/functions_arm64.go
2023-04-26 21:07:04 +10:00

44 lines
901 B
Go

package w32
// MenuItemFromPoint determines which menu item, if any, is at the specified
// location.
func MenuItemFromPoint(w HWND, m HMENU, screen POINT) int {
ret, _, _ := menuItemFromPoint.Call(
uintptr(w),
uintptr(m),
uintptr(uint64(screen.X)<<32|uint64(screen.Y)),
)
return int(ret)
}
func GetClassLongPtr(w HWND, index int) uintptr {
ret, _, _ := getClassLongPtr.Call(uintptr(w), uintptr(index))
return ret
}
func SetClassLongPtr(w HWND, index int, value uintptr) uintptr {
ret, _, _ := setClassLongPtr.Call(
uintptr(w),
uintptr(index),
value,
)
return ret
}
func GetWindowLongPtr(hwnd HWND, index int) uintptr {
ret, _, _ := getWindowLongPtr.Call(
uintptr(hwnd),
uintptr(index),
)
return ret
}
func SetWindowLongPtr(hwnd HWND, index int, value uintptr) uintptr {
ret, _, _ := setWindowLongPtr.Call(
uintptr(hwnd),
uintptr(index),
value,
)
return ret
}