Documentation ¶
Overview ¶
Package syscall provides platform-dependent routines required to support the package goey. In particular, on WIN32, the goal is to fill in some missing APIs that are not provided by lxn's WIN32 binding. Anything found herein should be a candidate for upstreaming. Since the WIN32 naming convention is also camel case, most of the functions in this package are named exactly as their C API counterpart.
This package is intended for internal use.
This package contains platform-specific details.
Index ¶
- Constants
- func GetDesktopWindow() win.HWND
- func GetWindowText(hWnd win.HWND) string
- func GetWindowTextLength(hWnd win.HWND) int32
- func SetClassLongPtr(hWnd win.HWND, index int32, value uintptr) uintptr
- func SetWindowText(hWnd win.HWND, text *uint16) win.BOOL
- func ShowScrollBar(hWnd win.HWND, wSBFlags uint, bShow win.BOOL) win.BOOL
- type NMSELCHANGE
Constants ¶
const ( GCLP_HICON = -14 GCLP_HICONSM = -34 DTM_FIRST = 0x1000 DTM_CLOSEMONTHCAL = DTM_FIRST + 13 MCM_FIRST = 0x1000 MCN_FIRST = uint32(0xFFFFFD12) MCN_SELECT = MCN_FIRST + 4 STM_SETIMAGE = 0x0172 STM_GETIMAGE = 0x0173 )
Variables ¶
This section is empty.
Functions ¶
func GetWindowText ¶
GetWindowText is a wrapper for GetWindowTextLength and GetWindowText. This function provides a somewhat higher-level API than the C API, as Go is garbage collected, so the buffer management provided by the C API is not required.
func GetWindowTextLength ¶
GetWindowTextLength is a wrapper.
func SetClassLongPtr ¶
SetClassLongPtr is a wrapper.
func SetWindowText ¶
SetWindowText is a wrapper.
Types ¶
type NMSELCHANGE ¶
type NMSELCHANGE struct { Nmhdr win.NMHDR StSelStart win.SYSTEMTIME StSelEnd win.SYSTEMTIME }
NMSELCHANGE match the C structure of the same name.