mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-05 17:35:36 +00:00
ap/internal/windows: change type of HWND_TOPMOST to syscall.Handle
syscall.Handle is equivalent to the C type HWND. Inspired by a patch by qiannian. Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -207,7 +207,7 @@ const (
|
|||||||
CFS_POINT = 0x0002
|
CFS_POINT = 0x0002
|
||||||
CFS_CANDIDATEPOS = 0x0040
|
CFS_CANDIDATEPOS = 0x0040
|
||||||
|
|
||||||
HWND_TOPMOST = ^(uint32(1) - 1) // -1
|
HWND_TOPMOST = ^(syscall.Handle(1) - 1) // -1
|
||||||
|
|
||||||
HTCAPTION = 2
|
HTCAPTION = 2
|
||||||
HTCLIENT = 1
|
HTCLIENT = 1
|
||||||
@@ -782,7 +782,7 @@ func SetWindowPlacement(hwnd syscall.Handle, wp *WindowPlacement) {
|
|||||||
_SetWindowPlacement.Call(uintptr(hwnd), uintptr(unsafe.Pointer(wp)))
|
_SetWindowPlacement.Call(uintptr(hwnd), uintptr(unsafe.Pointer(wp)))
|
||||||
}
|
}
|
||||||
|
|
||||||
func SetWindowPos(hwnd syscall.Handle, hwndInsertAfter uint32, x, y, dx, dy int32, style uintptr) {
|
func SetWindowPos(hwnd, hwndInsertAfter syscall.Handle, x, y, dx, dy int32, style uintptr) {
|
||||||
_SetWindowPos.Call(uintptr(hwnd), uintptr(hwndInsertAfter),
|
_SetWindowPos.Call(uintptr(hwnd), uintptr(hwndInsertAfter),
|
||||||
uintptr(x), uintptr(y),
|
uintptr(x), uintptr(y),
|
||||||
uintptr(dx), uintptr(dy),
|
uintptr(dx), uintptr(dy),
|
||||||
|
|||||||
Reference in New Issue
Block a user