Documentation ¶
Rendered for windows/amd64
Index ¶
- Constants
- func ExtendFrameIntoClientArea(hwnd uintptr)
- func IsCurrentlyDarkMode() bool
- func IsCurrentlyHighContrastMode() bool
- func IsWindowMaximised(hwnd uintptr) bool
- func IsWindowsVersionAtLeast(major, minor, buildNumber int) bool
- func SetBorderColour(hwnd uintptr, titleBorderColour int32)
- func SetTheme(hwnd uintptr, useDarkMode bool)
- func SetTitleBarColour(hwnd uintptr, titleBarColour int32)
- func SetTitleTextColour(hwnd uintptr, titleTextColour int32)
- func SupportsCustomThemes() bool
- func SupportsThemes() bool
- type DWMWINDOWATTRIBUTE
- type HANDLE
- type HRESULT
- type MARGINS
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 IsWindowsVersionAtLeast ¶
func SetBorderColour ¶
func SetTitleBarColour ¶
func SetTitleTextColour ¶
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 MARGINS ¶
type MARGINS struct {
CxLeftWidth, CxRightWidth, CyTopHeight, CyBottomHeight int32
}
http://msdn.microsoft.com/en-us/library/windows/desktop/bb773244.aspx
Click to show internal directories.
Click to hide internal directories.