fix: remove duplicate defs in win32/window.go (#1832)

Introduced in 70c484f603
This commit is contained in:
Sean
2022-09-07 05:43:47 +10:00
committed by GitHub
parent 6e35e9a3e4
commit 85b8c3025d
@@ -13,7 +13,6 @@ import (
)
const (
WS_MINIMIZE = 0x20000000
WS_MAXIMIZE = 0x01000000
WS_MINIMIZE = 0x20000000
@@ -143,11 +142,6 @@ func SetBackgroundColour(hwnd uintptr, r, g, b uint8) {
setClassLongPtr(hwnd, GCLP_HBRBACKGROUND, hbrush)
}
func IsWindowMinimised(hwnd uintptr) bool {
style := uint32(getWindowLong(hwnd, GWL_STYLE))
return style&WS_MINIMIZE != 0
}
func IsWindowNormal(hwnd uintptr) bool {
return !IsWindowMaximised(hwnd) && !IsWindowMinimised(hwnd) && !IsWindowFullScreen(hwnd)
}