5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-03 02:31:58 +08:00

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

Introduced in 70c484f603
This commit is contained in:
Sean 2022-09-06 12:43:47 -07:00 committed by GitHub
parent 6e35e9a3e4
commit 85b8c3025d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
}