Documentation ¶
Rendered for windows/amd64
Overview ¶
Package w32 将用到的 win32 API 以及相关数据结构封装为 Go 模式
Index ¶
- Constants
- func AdjustWindowRect(rect *windows.Rect, style int, menu bool)
- func CreateWindowEx(exStyle, className, windowName, style uintptr, point webview.Point, ...) (uintptr, error)
- func DefWindowProc(hwnd, msg, wp, lp uintptr) uintptr
- func DestroyWindow(h uintptr)
- func DispatchMessage(m *Msg)
- func GetAncestor(h uintptr, flag uint) uintptr
- func GetClientRect(h uintptr, rect *windows.Rect)
- func GetMessage(m *Msg, h uintptr, min, max uint) int
- func GetSystemMetrics(v uintptr) uintptr
- func GetWindowLongPtr(h uintptr, index int) int
- func IsDialogMessage(h uintptr, msg *Msg) bool
- func LoadImage(instance uintptr) uintptr
- func PostQuitMessage(code int)
- func PostThreadMessage(thread uintptr, msg uint, w, l uintptr)
- func RegisterClassEx(wc *WndClassExW) error
- func SHCreateMemStream(data []byte) (uintptr, error)
- func SetFocus(h uintptr)
- func SetWindowLongPtr(h uintptr, index, style int)
- func SetWindowPos(h, z uintptr, p webview.Point, size webview.Size, flag uint)
- func SetWindowText(h uintptr, title string) error
- func ShowWindow(h uintptr, style int)
- func TranslateMessage(m *Msg)
- func UpdateWindow(h uintptr)
- type MinMaxInfo
- type Msg
- type Point
- type WndClassExW
Constants ¶
View Source
const ( SystemMetricsCxIcon = 11 SystemMetricsCyIcon = 12 )
View Source
const ( SWHide = 0 SWShow = 5 )
https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-showwindow
View Source
const ( SWPNoZOrder = 0x0004 SWPNoActivate = 0x0010 SWPNoMove = 0x0002 SWPFrameChanged = 0x0020 )
https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-setwindowpos
View Source
const ( WMDestroy = 0x0002 WMMove = 0x0003 WMSize = 0x0005 WMActivate = 0x0006 WMClose = 0x0010 WMQuit = 0x0012 WMGetMinMaxInfo = 0x0024 WMNCLButtonDown = 0x00A1 WMMoving = 0x0216 WMApp = 0x8000 )
View Source
const ( GAParent = 1 GARoot = 2 GARootOwner = 3 )
View Source
const ( WAInactive = 0 WAActive = 1 WAActiveClick = 2 )
View Source
const (
CW_USEDEFAULT = 0x80000000
)
View Source
const (
GWLStyle = -16
)
Variables ¶
This section is empty.
Functions ¶
func CreateWindowEx ¶
func DefWindowProc ¶
func DestroyWindow ¶
func DestroyWindow(h uintptr)
func DispatchMessage ¶
func DispatchMessage(m *Msg)
func GetAncestor ¶
func GetClientRect ¶
func GetSystemMetrics ¶
func GetWindowLongPtr ¶
func IsDialogMessage ¶
func PostQuitMessage ¶
func PostQuitMessage(code int)
func PostThreadMessage ¶
func RegisterClassEx ¶
func RegisterClassEx(wc *WndClassExW) error
func SHCreateMemStream ¶
func SetWindowLongPtr ¶
func SetWindowText ¶
func ShowWindow ¶
func TranslateMessage ¶
func TranslateMessage(m *Msg)
func UpdateWindow ¶
func UpdateWindow(h uintptr)
Types ¶
type MinMaxInfo ¶
Click to show internal directories.
Click to hide internal directories.