Documentation
¶
Rendered for windows/amd64
Index ¶
- Constants
- Variables
- func AbortErrNo(funcname string, err error)
- func CreateWindow(title string, wndproc uintptr) (hwnd syscall.Handle)
- func CreateWindowEx(exstyle uint32, classname *uint16, windowname *uint16, style uint32, x int32, ...) (hwnd syscall.Handle, err error)
- func DefWindowProc(hwnd syscall.Handle, msg uint32, wparam uintptr, lparam uintptr) (lresult uintptr)
- func DestroyWindow(hwnd syscall.Handle) (err error)
- func DispatchMessage(msg *Msg) (ret int32)
- func GetMessage(msg *Msg, hwnd syscall.Handle, MsgFilterMin uint32, MsgFilterMax uint32) (ret int32, err error)
- func GetModuleHandle(modname *uint16) (handle syscall.Handle, err error)
- func LoadCursor(instance syscall.Handle, cursorname *uint16) (cursor syscall.Handle, err error)
- func LoadIcon(instance syscall.Handle, iconname *uint16) (icon syscall.Handle, err error)
- func MakeIntResource(id uint16) *uint16
- func PostMessage(hwnd syscall.Handle, msg uint32, wparam uintptr, lparam uintptr) (err error)
- func PostQuitMessage(exitcode int32)
- func RegisterClassEx(wndclass *Wndclassex) (atom uint16, err error)
- func SendMessage(hwnd syscall.Handle, msg uint32, wparam uintptr, lparam uintptr) (lresult uintptr)
- func SetCursor(cursor syscall.Handle) (precursor syscall.Handle, err error)
- func ShowWindow(hwnd syscall.Handle, cmdshow int32) (wasvisible bool)
- func TranslateMessage(msg *Msg) (done bool)
- func UpdateWindow(hwnd syscall.Handle) (err error)
- type Msg
- type Point
- type Wndclassex
Constants ¶
View Source
const ( // Window styles WS_OVERLAPPED = 0 WS_POPUP = 0x80000000 WS_CHILD = 0x40000000 WS_MINIMIZE = 0x20000000 WS_VISIBLE = 0x10000000 WS_DISABLED = 0x8000000 WS_CLIPSIBLINGS = 0x4000000 WS_CLIPCHILDREN = 0x2000000 WS_MAXIMIZE = 0x1000000 WS_CAPTION = WS_BORDER | WS_DLGFRAME WS_BORDER = 0x800000 WS_DLGFRAME = 0x400000 WS_VSCROLL = 0x200000 WS_HSCROLL = 0x100000 WS_SYSMENU = 0x80000 WS_THICKFRAME = 0x40000 WS_GROUP = 0x20000 WS_TABSTOP = 0x10000 WS_MINIMIZEBOX = 0x20000 WS_MAXIMIZEBOX = 0x10000 WS_TILED = WS_OVERLAPPED WS_ICONIC = WS_MINIMIZE WS_SIZEBOX = WS_THICKFRAME // Common Window Styles WS_OVERLAPPEDWINDOW = WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU | WS_THICKFRAME | WS_MINIMIZEBOX | WS_MAXIMIZEBOX WS_TILEDWINDOW = WS_OVERLAPPEDWINDOW WS_POPUPWINDOW = WS_POPUP | WS_BORDER | WS_SYSMENU WS_CHILDWINDOW = WS_CHILD WS_EX_CLIENTEDGE = 0x200 // Some windows messages WM_CREATE = 1 WM_DESTROY = 2 WM_SIZE = 5 WM_CLOSE = 16 WM_COMMAND = 273 // Some button control styles BS_DEFPUSHBUTTON = 1 // Some color constants COLOR_WINDOW = 5 COLOR_BTNFACE = 15 // Default window position CW_USEDEFAULT = 0x80000000 - 0x100000000 // Show window default style SW_SHOWDEFAULT = 10 )
Variables ¶
View Source
var ( // Some globally known cursors IDC_ARROW = MakeIntResource(32512) IDC_IBEAM = MakeIntResource(32513) IDC_WAIT = MakeIntResource(32514) IDC_CROSS = MakeIntResource(32515) // Some globally known icons IDI_APPLICATION = MakeIntResource(32512) IDI_HAND = MakeIntResource(32513) IDI_QUESTION = MakeIntResource(32514) IDI_EXCLAMATION = MakeIntResource(32515) IDI_ASTERISK = MakeIntResource(32516) IDI_WINLOGO = MakeIntResource(32517) IDI_WARNING = IDI_EXCLAMATION IDI_ERROR = IDI_HAND IDI_INFORMATION = IDI_ASTERISK )
Functions ¶
func AbortErrNo ¶
func CreateWindowEx ¶
func DefWindowProc ¶
func DestroyWindow ¶
func DispatchMessage ¶
func GetMessage ¶
func LoadCursor ¶
func MakeIntResource ¶
func PostMessage ¶
func PostQuitMessage ¶
func PostQuitMessage(exitcode int32)
func RegisterClassEx ¶
func RegisterClassEx(wndclass *Wndclassex) (atom uint16, err error)
func SendMessage ¶
func TranslateMessage ¶
func UpdateWindow ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.