5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-21 11:29:29 +08:00
wails/v3/internal/w32/functions_386.go
2023-05-30 16:31:47 +08:00

30 lines
739 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(screen.X),
uintptr(screen.Y),
)
return int(ret)
}
func GetClassLongPtr(w HWND, index int) uintptr {
return uintptr(GetClassLong(w, index))
}
func SetClassLongPtr(w HWND, index int, value uintptr) uintptr {
return uintptr(SetClassLong(w, index, int32(value)))
}
func GetWindowLongPtr(hwnd HWND, index int) uintptr {
return uintptr(GetWindowLong(hwnd, index))
}
func SetWindowLongPtr(hwnd HWND, index int, value uintptr) uintptr {
return uintptr(SetWindowLong(hwnd, index, int32(value)))
}