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:
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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user