win32

package
v2.0.0-beta.35 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 27, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Rendered for windows/amd64

Index

Constants

View Source
const (
	WS_MAXIMIZE = 0x01000000

	GWL_STYLE = -16
)
View Source
const HCF_HIGHCONTRASTON = 0x00000001
View Source
const SPI_GETHIGHCONTRAST = 0x0042

Variables

This section is empty.

Functions

func ExtendFrameIntoClientArea

func ExtendFrameIntoClientArea(hwnd uintptr)

func IsCurrentlyDarkMode

func IsCurrentlyDarkMode() bool

func IsCurrentlyHighContrastMode

func IsCurrentlyHighContrastMode() bool

func IsWindowMaximised

func IsWindowMaximised(hwnd uintptr) bool

func IsWindowsVersionAtLeast

func IsWindowsVersionAtLeast(major, minor, buildNumber int) bool

func SetBorderColour

func SetBorderColour(hwnd uintptr, titleBorderColour int32)

func SetTheme

func SetTheme(hwnd uintptr, useDarkMode bool)

func SetTitleBarColour

func SetTitleBarColour(hwnd uintptr, titleBarColour int32)

func SetTitleTextColour

func SetTitleTextColour(hwnd uintptr, titleTextColour int32)

func SupportsCustomThemes

func SupportsCustomThemes() bool

func SupportsThemes

func SupportsThemes() bool

Types

type DWMWINDOWATTRIBUTE

type DWMWINDOWATTRIBUTE int32
const DwmwaBorderColor DWMWINDOWATTRIBUTE = 34
const DwmwaCaptionColor DWMWINDOWATTRIBUTE = 35
const DwmwaTextColor DWMWINDOWATTRIBUTE = 36
const DwmwaUseImmersiveDarkMode DWMWINDOWATTRIBUTE = 20
const DwmwaUseImmersiveDarkModeBefore20h1 DWMWINDOWATTRIBUTE = 19

type HANDLE

type HANDLE uintptr

type HRESULT

type HRESULT int32

type MARGINS

type MARGINS struct {
	CxLeftWidth, CxRightWidth, CyTopHeight, CyBottomHeight int32
}

http://msdn.microsoft.com/en-us/library/windows/desktop/bb773244.aspx

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL