Documentation ¶
Overview ¶
Package user32 wraps some calls from the user32.dll to make them slightly easier to use.
Index ¶
- Constants
- func AdjustWindowRec(rect *Rect, style uintptr, hasMenu bool) error
- func CreateWindowExW(className, windowName string, x, y, width, height int, ...) (windows.Handle, error)
- func DefWindowProcW(hwnd, msg, wp, lp uintptr) (uintptr, error)
- func DestroyWindow(hwnd windows.Handle) error
- func DispatchMessageW(msg *Msg) error
- func GetSystemMetrics(metric uintptr) (uintptr, error)
- func GetWindowLongPtrW(hwnd windows.Handle, nIndex uintptr) (uintptr, error)
- func LoadImageW(hInstance windows.Handle, cx, cy uintptr) (windows.Handle, error)
- func PostQuitMessage(exitCode int) error
- func RegisterClassExW(wc *WndClassExW) error
- func SetFocus(hwnd windows.Handle) error
- func SetWindowLongPtrW(hwnd windows.Handle, nIndex uintptr, newLong uintptr) error
- func SetWindowPos(hwnd windows.Handle, x, y, cx, cy int32, flags uintptr) error
- func SetWindowTextW(hwnd windows.Handle, text string) error
- func ShowWindow(hwnd windows.Handle) error
- func TranslateMessage(msg *Msg) error
- type MinMaxInfo
- type Msg
- type Point
- type Rect
- type WndClassExW
Constants ¶
View Source
const ( CW_USEDEFAULT = 0x80000000 SystemMetricsCxIcon = 11 SystemMetricsCyIcon = 12 GWLStyle = -16 WSOverlapped = 0x00000000 WSMaximizeBox = 0x00020000 WSThickFrame = 0x00040000 WSCaption = 0x00C00000 WSSysMenu = 0x00080000 WSMinimizeBox = 0x00020000 WSOverlappedWindow = (WSOverlapped | WSCaption | WSSysMenu | WSThickFrame | WSMinimizeBox | WSMaximizeBox) SWPNoZOrder = 0x0004 SWPNoActivate = 0x0010 SWPNoMove = 0x0002 SWPFrameChanged = 0x0020 WMDestroy = 0x0002 WMSize = 0x0005 WMClose = 0x0010 WMQuit = 0x0012 WMGetMinMaxInfo = 0x0024 WMApp = 0x8000 )
Variables ¶
This section is empty.
Functions ¶
func CreateWindowExW ¶
func DefWindowProcW ¶
func DestroyWindow ¶
func DispatchMessageW ¶
func GetSystemMetrics ¶
func GetWindowLongPtrW ¶
func PostQuitMessage ¶
func RegisterClassExW ¶
func RegisterClassExW(wc *WndClassExW) error
func SetWindowLongPtrW ¶
func ShowWindow ¶
func TranslateMessage ¶
Types ¶
type MinMaxInfo ¶
type Msg ¶
Click to show internal directories.
Click to hide internal directories.