Documentation ¶
Index ¶
- Constants
- func AbortDoc(hdc HDC) int32
- func ActivateActCtx(ctx HANDLE) (uintptr, bool)
- func AddClipboardFormatListener(hwnd HWND) bool
- func AddFontResourceEx(lpszFilename *uint16, fl uint32, pdv unsafe.Pointer) int32
- func AdjustWindowRect(lpRect *RECT, dwStyle uint32, bMenu bool) bool
- func AdjustWindowRectEx(lpRect *RECT, dwStyle uint32, bMenu bool, dwExStyle uint32) bool
- func AlphaBlend(hdcDest HDC, nXOriginDest, nYOriginDest, nWidthDest, nHeightDest int32, ...) bool
- func AnimateWindow(hwnd HWND, dwTime, dwFlags uint32) bool
- func AttachThreadInput(idAttach int32, idAttachTo int32, fAttach bool) bool
- func BitBlt(hdcDest HDC, nXDest, nYDest, nWidth, nHeight int32, hdcSrc HDC, ...) bool
- func BringWindowToTop(hwnd HWND) bool
- func CallWindowProc(lpPrevWndFunc uintptr, hWnd HWND, Msg uint32, wParam, lParam uintptr) uintptr
- func ChangeWindowMessageFilterEx(hwnd HWND, msg uint32, action uint32, changeFilterStruct *CHANGEFILTERSTRUCT) bool
- func CheckMenuRadioItem(hmenu HMENU, first, last, check, flags uint32) bool
- func ChoosePixelFormat(hdc HDC, ppfd *PIXELFORMATDESCRIPTOR) int32
- func ClientToScreen(hwnd HWND, lpPoint *POINT) bool
- func CloseClipboard() bool
- func CloseHandle(hObject HANDLE) bool
- func CombineRgn(hrgnDest, hrgnSrc1, hrgnSrc2 HRGN, fnCombineMode int32) int32
- func DefWindowProc(hWnd HWND, Msg uint32, wParam, lParam uintptr) uintptr
- func DeleteDC(hdc HDC) bool
- func DeleteEnhMetaFile(hemf HENHMETAFILE) bool
- func DeleteMenu(hMenu HMENU, uPosition uint32, uFlags uint32) bool
- func DeleteObject(hObject HGDIOBJ) bool
- func DestroyIcon(hIcon HICON) bool
- func DestroyMenu(hMenu HMENU) bool
- func DestroyWindow(hWnd HWND) bool
- func DialogBoxParam(instRes HINSTANCE, name *uint16, parent HWND, proc, param uintptr) int
- func DispatchMessage(msg *MSG) uintptr
- func DrawFocusRect(hDC HDC, lprc *RECT) bool
- func DrawIconEx(hdc HDC, xLeft, yTop int32, hIcon HICON, cxWidth, cyWidth int32, ...) bool
- func DrawMenuBar(hWnd HWND) bool
- func DrawTextEx(hdc HDC, lpchText *uint16, cchText int32, lprc *RECT, dwDTFormat uint32, ...) int32
- func Ellipse(hdc HDC, nLeftRect, nTopRect, nRightRect, nBottomRect int32) bool
- func EmptyClipboard() bool
- func EnableMenuItem(hMenu HMENU, uIDEnableItem uint32, uEnable uint32) bool
- func EnableWindow(hWnd HWND, bEnable bool) bool
- func EndDeferWindowPos(hWinPosInfo HDWP) bool
- func EndDialog(hwnd HWND, result int) bool
- func EndDoc(hdc HDC) int32
- func EndPage(hdc HDC) int32
- func EndPaint(hwnd HWND, lpPaint *PAINTSTRUCT) bool
- func EnumChildWindows(hWndParent HWND, lpEnumFunc, lParam uintptr) bool
- func ExcludeClipRect(hdc HDC, nLeftRect, nTopRect, nRightRect, nBottomRect int32) int32
- func FAILED(hr HRESULT) bool
- func FileTimeToSystemTime(lpFileTime *FILETIME, lpSystemTime *SYSTEMTIME) bool
- func FillRgn(hdc HDC, hrgn HRGN, hbr HBRUSH) bool
- func GET_X_LPARAM(lp uintptr) int32
- func GET_Y_LPARAM(lp uintptr) int32
- func GdiFlush() bool
- func GetCaretPos(lpPoint *POINT) bool
- func GetClassName(hWnd HWND, className *uint16, maxCount int) (int, error)
- func GetClientRect(hWnd HWND, rect *RECT) bool
- func GetConsoleTitle(lpConsoleTitle *uint16, nSize uint32) uint32
- func GetCurrentThreadId() uint32
- func GetCursorPos(lpPoint *POINT) bool
- func GetDIBits(hdc HDC, hbmp HBITMAP, uStartScan uint32, cScanLines uint32, lpvBits *byte, ...) int32
- func GetDeviceCaps(hdc HDC, nIndex int32) int32
- func GetDpiForWindow(hwnd HWND) uint32
- func GetEnhMetaFileHeader(hemf HENHMETAFILE, cbBuffer uint32, lpemh *ENHMETAHEADER) uint32
- func GetIconInfo(hicon HICON, piconinfo *ICONINFO) bool
- func GetKeyState(nVirtKey int32) int16
- func GetLastError() uint32
- func GetLocaleInfo(Locale LCID, LCType LCTYPE, lpLCData *uint16, cchData int32) int32
- func GetLogicalDriveStrings(nBufferLength uint32, lpBuffer *uint16) uint32
- func GetMenuCheckMarkDimensions() int32
- func GetMenuInfo(hmenu HMENU, lpcmi *MENUINFO) bool
- func GetMenuItemCount(hMenu HMENU) int32
- func GetMenuItemID(hMenu HMENU, nPos int32) uint32
- func GetMenuItemInfo(hmenu HMENU, item uint32, fByPosition BOOL, lpmii *MENUITEMINFO) bool
- func GetMonitorInfo(hMonitor HMONITOR, lpmi *MONITORINFO) bool
- func GetNumberFormat(Locale LCID, dwFlags uint32, lpValue *uint16, lpFormat *NUMBERFMT, ...) int32
- func GetObject(hgdiobj HGDIOBJ, cbBuffer uintptr, lpvObject unsafe.Pointer) int32
- func GetPhysicallyInstalledSystemMemory(totalMemoryInKilobytes *uint64) bool
- func GetProfileString(lpAppName, lpKeyName, lpDefault *uint16, lpReturnedString uintptr, ...) bool
- func GetRawInputData(hRawInput HRAWINPUT, uiCommand uint32, pData unsafe.Pointer, pcbSize *uint32, ...) uint32
- func GetRgnBox(hrgn HRGN, lprc *RECT) int32
- func GetScrollInfo(hwnd HWND, fnBar int32, lpsi *SCROLLINFO) bool
- func GetSysColor(nIndex int) uint32
- func GetSystemMetrics(nIndex int32) int32
- func GetSystemMetricsForDpi(nIndex int32, dpi uint32) int32
- func GetTextExtentExPoint(hdc HDC, lpszStr *uint16, cchString, nMaxExtent int32, lpnFit, alpDx *int32, ...) bool
- func GetTextExtentPoint32(hdc HDC, lpString *uint16, c int32, lpSize *SIZE) bool
- func GetTextMetrics(hdc HDC, lptm *TEXTMETRIC) bool
- func GetVersion() uint32
- func GetViewportOrgEx(hdc HDC, lpPoint *POINT) bool
- func GetWindowLong(hWnd HWND, index int32) int32
- func GetWindowLongPtr(hWnd HWND, index int32) uintptr
- func GetWindowPlacement(hWnd HWND, lpwndpl *WINDOWPLACEMENT) bool
- func GetWindowRect(hWnd HWND, rect *RECT) bool
- func GetWindowThreadProcessId(hwnd HWND, processId *uint32) uint32
- func GlobalLock(hMem HGLOBAL) unsafe.Pointer
- func GlobalUnlock(hMem HGLOBAL) bool
- func GradientFill(hdc HDC, pVertex *TRIVERTEX, nVertex uint32, pMesh unsafe.Pointer, ...) bool
- func HIBYTE(w uint16) byte
- func HIWORD(dw uint32) uint16
- func InsertMenuItem(hMenu HMENU, uItem uint32, fByPosition bool, lpmii *MENUITEMINFO) bool
- func IntersectClipRect(hdc HDC, nLeftRect, nTopRect, nRightRect, nBottomRect int32) int32
- func InvalidateRect(hWnd HWND, lpRect *RECT, bErase bool) bool
- func IsChild(hWndParent, hWnd HWND) bool
- func IsClipboardFormatAvailable(format uint32) bool
- func IsDialogMessage(hWnd HWND, msg *MSG) bool
- func IsIconic(hWnd HWND) bool
- func IsWindowEnabled(hWnd HWND) bool
- func IsWindowVisible(hWnd HWND) bool
- func IsZoomed(hWnd HWND) bool
- func KillTimer(hWnd HWND, uIDEvent uintptr) bool
- func LOBYTE(w uint16) byte
- func LOWORD(dw uint32) uint16
- func LineTo(hdc HDC, nXEnd, nYEnd int32) bool
- func LoadString(instRes HINSTANCE, id uint32, buf *uint16, length int32) int32
- func LockResource(hResData HGLOBAL) uintptr
- func MAKEINTRESOURCE(id uintptr) *uint16
- func MAKELONG(lo, hi uint16) uint32
- func MAKEWORD(lo, hi byte) uint16
- func MessageBeep(uType uint32) bool
- func MessageBox(hWnd HWND, lpText, lpCaption *uint16, uType uint32) int32
- func MoveMemory(destination, source unsafe.Pointer, length uintptr)
- func MoveToEx(hdc HDC, x, y int, lpPoint *POINT) bool
- func MoveWindow(hWnd HWND, x, y, width, height int32, repaint bool) bool
- func MulDiv(nNumber, nNumerator, nDenominator int32) int32
- func NotifyWinEvent(event uint32, hwnd HWND, idObject, idChild int32)
- func OpenClipboard(hWndNewOwner HWND) bool
- func PeekMessage(lpMsg *MSG, hWnd HWND, wMsgFilterMin, wMsgFilterMax, wRemoveMsg uint32) bool
- func PlayEnhMetaFile(hdc HDC, hemf HENHMETAFILE, lpRect *RECT) bool
- func Polyline(hdc HDC, lppt unsafe.Pointer, cPoints int32) bool
- func PostMessage(hWnd HWND, msg uint32, wParam, lParam uintptr) uintptr
- func PostQuitMessage(exitCode int32)
- func QueryPerformanceCounter(lpPerformanceCount *uint64) bool
- func QueryPerformanceFrequency(lpFrequency *uint64) bool
- func Rectangle_(hdc HDC, nLeftRect, nTopRect, nRightRect, nBottomRect int32) bool
- func RedrawWindow(hWnd HWND, lprcUpdate *RECT, hrgnUpdate HRGN, flags uint32) bool
- func RegisterRawInputDevices(pRawInputDevices *RAWINPUTDEVICE, uiNumDevices uint32, cbSize uint32) bool
- func RegisterWindowMessage(lpString *uint16) uint32
- func ReleaseCapture() bool
- func ReleaseDC(hWnd HWND, hDC HDC) bool
- func RemoveFontMemResourceEx(h HANDLE) bool
- func RemoveFontResourceEx(lpszFilename *uint16, fl uint32, pdv unsafe.Pointer) bool
- func RemoveMenu(hMenu HMENU, uPosition, uFlags uint32) bool
- func RestoreDC(hdc HDC, nSaveDC int32) bool
- func RoundRect(hdc HDC, nLeftRect, nTopRect, nRightRect, nBottomRect, nWidth, nHeight int32) bool
- func SUCCEEDED(hr HRESULT) bool
- func SaveDC(hdc HDC) int32
- func ScreenToClient(hWnd HWND, point *POINT) bool
- func SendDlgItemMessage(hWnd HWND, id int32, msg uint32, wParam, lParam uintptr) uintptr
- func SendInput(nInputs uint32, pInputs unsafe.Pointer, cbSize int32) uint32
- func SendMessage(hWnd HWND, msg uint32, wParam, lParam uintptr) uintptr
- func SetBkMode(hdc HDC, iBkMode int32) int32
- func SetBrushOrgEx(hdc HDC, nXOrg, nYOrg int32, lppt *POINT) bool
- func SetCursorPos(X, Y int32) bool
- func SetDIBits(hdc HDC, hbmp HBITMAP, uStartScan, cScanLines uint32, lpvBits *byte, ...) int32
- func SetForegroundWindow(hWnd HWND) bool
- func SetLastError(dwErrorCode uint32)
- func SetMenu(hWnd HWND, hMenu HMENU) bool
- func SetMenuDefaultItem(hMenu HMENU, uItem uint32, fByPosition bool) bool
- func SetMenuInfo(hmenu HMENU, lpcmi *MENUINFO) bool
- func SetMenuItemBitmaps(hMenu HMENU, uPosition uint32, uFlags uint32, hBitmapUnchecked HBITMAP, ...) bool
- func SetMenuItemInfo(hMenu HMENU, uItem uint32, fByPosition bool, lpmii *MENUITEMINFO) bool
- func SetPixelFormat(hdc HDC, iPixelFormat int32, ppfd *PIXELFORMATDESCRIPTOR) bool
- func SetScrollInfo(hwnd HWND, fnBar int32, lpsi *SCROLLINFO, fRedraw bool) int32
- func SetStretchBltMode(hdc HDC, iStretchMode int32) int32
- func SetTimer(hWnd HWND, nIDEvent uintptr, uElapse uint32, lpTimerFunc uintptr) uintptr
- func SetWindowLong(hWnd HWND, index, value int32) int32
- func SetWindowLongPtr(hWnd HWND, index int, value uintptr) uintptr
- func SetWindowPlacement(hWnd HWND, lpwndpl *WINDOWPLACEMENT) bool
- func SetWindowPos(hWnd, hWndInsertAfter HWND, x, y, width, height int32, flags uint32) bool
- func ShowWindow(hWnd HWND, nCmdShow int32) bool
- func SizeofResource(hModule HMODULE, hResInfo HRSRC) uint32
- func Sleep(milliseconds uint32)
- func StartDoc(hdc HDC, lpdi *DOCINFO) int32
- func StartPage(hdc HDC) int32
- func StretchBlt(hdcDest HDC, nXOriginDest, nYOriginDest, nWidthDest, nHeightDest int32, ...) bool
- func SwapBuffers(hdc HDC) bool
- func SystemParametersInfo(uiAction, uiParam uint32, pvParam unsafe.Pointer, fWinIni uint32) bool
- func SystemTimeToFileTime(lpSystemTime *SYSTEMTIME, lpFileTime *FILETIME) bool
- func TextOut(hdc HDC, nXStart, nYStart int32, lpString *uint16, cchString int32) bool
- func TrackMouseEvent(lpEventTrack *TRACKMOUSEEVENT) bool
- func TrackPopupMenu(hMenu HMENU, uFlags uint32, x, y int32, nReserved int32, hWnd HWND, ...) uint32
- func TranslateMessage(msg *MSG) bool
- func TransparentBlt(hdcDest HDC, xoriginDest, yoriginDest, wDest, hDest int32, hdcSrc HDC, ...) bool
- func UTF16PtrToString(s *uint16) string
- func UnhookWinEvent(hWinHookEvent HWINEVENTHOOK) bool
- func UnregisterClass(name *uint16) bool
- func UpdateWindow(hwnd HWND) bool
- type ACTCTX
- type ATOM
- type BITMAP
- type BITMAPINFO
- type BITMAPINFOHEADER
- type BITMAPV4HEADER
- type BITMAPV5HEADER
- type BLENDFUNCTION
- type BOOL
- type CHANGEFILTERSTRUCT
- type CIEXYZ
- type CIEXYZTRIPLE
- type CLIPFORMAT
- type COLORREF
- func GetBkColor(hdc HDC) COLORREF
- func GetPixel(hdc HDC, nXPos, nYPos int32) COLORREF
- func GetTextColor(hdc HDC) COLORREF
- func RGB(r, g, b byte) COLORREF
- func SetBkColor(hdc HDC, crColor COLORREF) COLORREF
- func SetPixel(hdc HDC, X, Y int32, crColor COLORREF) COLORREF
- func SetTextColor(hdc HDC, crColor COLORREF) COLORREF
- func SetViewportOrgEx(hdc HDC, x, y int32, lpPoint *POINT) COLORREF
- type CREATESTRUCT
- type DEVMODE
- type DIBSECTION
- type DOCINFO
- type DRAWITEMSTRUCT
- type DRAWTEXTPARAMS
- type ENHMETAHEADER
- type FILETIME
- type GRADIENT_RECT
- type GRADIENT_TRIANGLE
- type HACCEL
- type HANDLE
- func AddFontMemResourceEx(pFileView uintptr, cjSize uint32, pvReserved unsafe.Pointer, pNumFonts *uint32) HANDLE
- func CreateActCtx(ctx *ACTCTX) HANDLE
- func GetClipboardData(uFormat uint32) HANDLE
- func LoadImage(hinst HINSTANCE, lpszName *uint16, uType uint32, cxDesired, cyDesired int32, ...) HANDLE
- func SetClipboardData(uFormat uint32, hMem HANDLE) HANDLE
- type HARDWAREINPUT
- type HARDWARE_INPUT
- type HBITMAP
- type HBRUSH
- type HCURSOR
- type HDC
- func BeginPaint(hwnd HWND, lpPaint *PAINTSTRUCT) HDC
- func CreateCompatibleDC(hdc HDC) HDC
- func CreateDC(lpszDriver, lpszDevice, lpszOutput *uint16, lpInitData *DEVMODE) HDC
- func CreateEnhMetaFile(hdcRef HDC, lpFilename *uint16, lpRect *RECT, lpDescription *uint16) HDC
- func CreateIC(lpszDriver, lpszDevice, lpszOutput *uint16, lpdvmInit *DEVMODE) HDC
- func GetDC(hWnd HWND) HDC
- func ResetDC(hdc HDC, lpInitData *DEVMODE) HDC
- type HDWP
- type HENHMETAFILE
- type HFONT
- type HGDIOBJ
- type HGLOBAL
- type HICON
- type HIGHCONTRAST
- type HINSTANCE
- type HMENU
- type HMODULE
- type HMONITOR
- type HPALETTE
- type HPEN
- type HRAWINPUT
- type HRESULT
- type HRGN
- type HRSRC
- type HWINEVENTHOOK
- type HWND
- func CreateDialogParam(instRes HINSTANCE, name *uint16, parent HWND, proc, param uintptr) HWND
- func CreateWindowEx(dwExStyle uint32, lpClassName, lpWindowName *uint16, dwStyle uint32, ...) HWND
- func FindWindow(lpClassName, lpWindowName *uint16) HWND
- func GetActiveWindow() HWND
- func GetAncestor(hWnd HWND, gaFlags uint32) HWND
- func GetConsoleWindow() HWND
- func GetDesktopWindow() HWND
- func GetDlgItem(hDlg HWND, nIDDlgItem int32) HWND
- func GetFocus() HWND
- func GetForegroundWindow() HWND
- func GetParent(hWnd HWND) HWND
- func GetWindow(hWnd HWND, uCmd uint32) HWND
- func SetActiveWindow(hWnd HWND) HWND
- func SetCapture(hWnd HWND) HWND
- func SetFocus(hWnd HWND) HWND
- func SetParent(hWnd HWND, parentHWnd HWND) HWND
- func WindowFromDC(hDC HDC) HWND
- func WindowFromPoint(Point POINT) HWND
- type ICONINFO
- type KEYBDINPUT
- type KEYBD_INPUT
- type LANGID
- type LCID
- type LCTYPE
- type LOGBRUSH
- type LOGFONT
- type MEASUREITEMSTRUCT
- type MENUINFO
- type MENUITEMINFO
- type MINMAXINFO
- type MONITORINFO
- type MOUSEINPUT
- type MOUSE_INPUT
- type MSG
- type NMBCDROPDOWN
- type NMHDR
- type NONCLIENTMETRICS
- type NUMBERFMT
- type PAINTSTRUCT
- type PIXELFORMATDESCRIPTOR
- type POINT
- type RAWHID
- type RAWINPUTDEVICE
- type RAWINPUTHEADER
- type RAWINPUTHID
- type RAWINPUTKEYBOARD
- type RAWINPUTMOUSE
- type RAWKEYBOARD
- type RAWMOUSE
- type RECT
- type RGBQUAD
- type SCROLLINFO
- type SIZE
- type SYSTEMTIME
- type TEXTMETRIC
- type TPMPARAMS
- type TRACKMOUSEEVENT
- type TRIVERTEX
- type WINDOWPLACEMENT
- type WINDOWPOS
- type WINEVENTPROC
- type WNDCLASSEX
Constants ¶
const ( DRIVERVERSION = 0 TECHNOLOGY = 2 HORZSIZE = 4 VERTSIZE = 6 HORZRES = 8 VERTRES = 10 LOGPIXELSX = 88 LOGPIXELSY = 90 BITSPIXEL = 12 PLANES = 14 NUMBRUSHES = 16 NUMPENS = 18 NUMFONTS = 22 NUMCOLORS = 24 NUMMARKERS = 20 ASPECTX = 40 ASPECTY = 42 ASPECTXY = 44 PDEVICESIZE = 26 CLIPCAPS = 36 SIZEPALETTE = 104 NUMRESERVED = 106 COLORRES = 108 PHYSICALWIDTH = 110 PHYSICALHEIGHT = 111 PHYSICALOFFSETX = 112 PHYSICALOFFSETY = 113 SCALINGFACTORX = 114 SCALINGFACTORY = 115 VREFRESH = 116 DESKTOPHORZRES = 118 DESKTOPVERTRES = 117 BLTALIGNMENT = 119 SHADEBLENDCAPS = 120 COLORMGMTCAPS = 121 RASTERCAPS = 38 CURVECAPS = 28 LINECAPS = 30 POLYGONALCAPS = 32 TEXTCAPS = 34 )
GetDeviceCaps index constants
const ( DT_PLOTTER = 0 DT_RASDISPLAY = 1 DT_RASPRINTER = 2 DT_RASCAMERA = 3 DT_CHARSTREAM = 4 DT_METAFILE = 5 DT_DISPFILE = 6 )
GetDeviceCaps TECHNOLOGY constants
const ( SB_NONE = 0x00 SB_CONST_ALPHA = 0x01 SB_PIXEL_ALPHA = 0x02 SB_PREMULT_ALPHA = 0x04 SB_GRAD_RECT = 0x10 SB_GRAD_TRI = 0x20 )
GetDeviceCaps SHADEBLENDCAPS constants
const ( CM_NONE = 0x00 CM_DEVICE_ICM = 0x01 CM_GAMMA_RAMP = 0x02 CM_CMYK_COLOR = 0x04 )
GetDeviceCaps COLORMGMTCAPS constants
const ( RC_BANDING = 2 RC_BITBLT = 1 RC_BITMAP64 = 8 RC_DI_BITMAP = 128 RC_DIBTODEV = 512 RC_FLOODFILL = 4096 RC_GDI20_OUTPUT = 16 RC_PALETTE = 256 RC_SCALING = 4 RC_STRETCHBLT = 2048 RC_STRETCHDIB = 8192 RC_DEVBITS = 0x8000 RC_OP_DX_OUTPUT = 0x4000 )
GetDeviceCaps RASTERCAPS constants
const ( CC_NONE = 0 CC_CIRCLES = 1 CC_PIE = 2 CC_CHORD = 4 CC_ELLIPSES = 8 CC_WIDE = 16 CC_STYLED = 32 CC_WIDESTYLED = 64 CC_INTERIORS = 128 CC_ROUNDRECT = 256 )
GetDeviceCaps CURVECAPS constants
const ( LC_NONE = 0 LC_POLYLINE = 2 LC_MARKER = 4 LC_POLYMARKER = 8 LC_WIDE = 16 LC_STYLED = 32 LC_WIDESTYLED = 64 LC_INTERIORS = 128 )
GetDeviceCaps LINECAPS constants
const ( PC_NONE = 0 PC_POLYGON = 1 PC_POLYPOLYGON = 256 PC_PATHS = 512 PC_RECTANGLE = 2 PC_WINDPOLYGON = 4 PC_SCANLINE = 8 PC_TRAPEZOID = 4 PC_WIDE = 16 PC_STYLED = 32 PC_WIDESTYLED = 64 PC_INTERIORS = 128 )
GetDeviceCaps POLYGONALCAPS constants
const ( TC_OP_CHARACTER = 1 TC_OP_STROKE = 2 TC_CP_STROKE = 4 TC_CR_90 = 8 TC_CR_ANY = 16 TC_SF_X_YINDEP = 32 TC_SA_DOUBLE = 64 TC_SA_INTEGER = 128 TC_SA_CONTIN = 256 TC_EA_DOUBLE = 512 TC_IA_ABLE = 1024 TC_UA_ABLE = 2048 TC_SO_ABLE = 4096 TC_RA_ABLE = 8192 TC_VA_ABLE = 16384 TC_RESERVED = 32768 TC_SCROLLBLT = 65536 )
GetDeviceCaps TEXTCAPS constants
const ( BS_SOLID = 0 BS_NULL = 1 BS_HOLLOW = BS_NULL BS_HATCHED = 2 BS_PATTERN = 3 BS_INDEXED = 4 BS_DIBPATTERN = 5 BS_DIBPATTERNPT = 6 BS_PATTERN8X8 = 7 BS_DIBPATTERN8X8 = 8 BS_MONOPATTERN = 9 )
Brush styles
const ( HS_HORIZONTAL = 0 HS_VERTICAL = 1 HS_FDIAGONAL = 2 HS_BDIAGONAL = 3 HS_CROSS = 4 HS_DIAGCROSS = 5 )
Hatch styles
const ( PS_COSMETIC = 0x00000000 PS_GEOMETRIC = 0x00010000 PS_TYPE_MASK = 0x000F0000 )
Pen types
const ( PS_SOLID = 0 PS_DASH = 1 PS_DOT = 2 PS_DASHDOT = 3 PS_DASHDOTDOT = 4 PS_NULL = 5 PS_INSIDEFRAME = 6 PS_USERSTYLE = 7 PS_ALTERNATE = 8 PS_STYLE_MASK = 0x0000000F )
Pen styles
const ( PS_ENDCAP_ROUND = 0x00000000 PS_ENDCAP_SQUARE = 0x00000100 PS_ENDCAP_FLAT = 0x00000200 PS_ENDCAP_MASK = 0x00000F00 )
Pen cap types
const ( PS_JOIN_ROUND = 0x00000000 PS_JOIN_BEVEL = 0x00001000 PS_JOIN_MITER = 0x00002000 PS_JOIN_MASK = 0x0000F000 )
Pen join types
const ( PRF_NONCLIENT = 0x00000002 PRF_CLIENT = 0x00000004 PRF_ERASEBKGND = 0x00000008 PRF_CHILDREN = 0x00000010 PRF_OWNED = 0x00000020 )
Print constants
const ( WHITE_BRUSH = 0 LTGRAY_BRUSH = 1 GRAY_BRUSH = 2 DKGRAY_BRUSH = 3 BLACK_BRUSH = 4 NULL_BRUSH = 5 HOLLOW_BRUSH = NULL_BRUSH WHITE_PEN = 6 BLACK_PEN = 7 NULL_PEN = 8 OEM_FIXED_FONT = 10 ANSI_FIXED_FONT = 11 ANSI_VAR_FONT = 12 SYSTEM_FONT = 13 DEVICE_DEFAULT_FONT = 14 DEFAULT_PALETTE = 15 SYSTEM_FIXED_FONT = 16 DEFAULT_GUI_FONT = 17 DC_BRUSH = 18 DC_PEN = 19 )
Stock logical objects
const ( FW_DONTCARE = 0 FW_THIN = 100 FW_EXTRALIGHT = 200 FW_ULTRALIGHT = FW_EXTRALIGHT FW_LIGHT = 300 FW_NORMAL = 400 FW_REGULAR = 400 FW_MEDIUM = 500 FW_SEMIBOLD = 600 FW_DEMIBOLD = FW_SEMIBOLD FW_BOLD = 700 FW_EXTRABOLD = 800 FW_ULTRABOLD = FW_EXTRABOLD FW_HEAVY = 900 FW_BLACK = FW_HEAVY )
Font weight constants
const ( ANSI_CHARSET = 0 DEFAULT_CHARSET = 1 SYMBOL_CHARSET = 2 SHIFTJIS_CHARSET = 128 HANGEUL_CHARSET = 129 HANGUL_CHARSET = 129 GB2312_CHARSET = 134 CHINESEBIG5_CHARSET = 136 GREEK_CHARSET = 161 TURKISH_CHARSET = 162 HEBREW_CHARSET = 177 ARABIC_CHARSET = 178 BALTIC_CHARSET = 186 RUSSIAN_CHARSET = 204 THAI_CHARSET = 222 EASTEUROPE_CHARSET = 238 OEM_CHARSET = 255 JOHAB_CHARSET = 130 VIETNAMESE_CHARSET = 163 MAC_CHARSET = 77 )
Charset constants
const ( OUT_DEFAULT_PRECIS = 0 OUT_STRING_PRECIS = 1 OUT_CHARACTER_PRECIS = 2 OUT_STROKE_PRECIS = 3 OUT_TT_PRECIS = 4 OUT_DEVICE_PRECIS = 5 OUT_RASTER_PRECIS = 6 OUT_TT_ONLY_PRECIS = 7 OUT_OUTLINE_PRECIS = 8 OUT_PS_ONLY_PRECIS = 10 )
Font output precision constants
const ( CLIP_DEFAULT_PRECIS = 0 CLIP_CHARACTER_PRECIS = 1 CLIP_STROKE_PRECIS = 2 CLIP_MASK = 15 CLIP_LH_ANGLES = 16 CLIP_TT_ALWAYS = 32 CLIP_EMBEDDED = 128 )
Font clipping precision constants
const ( DEFAULT_QUALITY = 0 DRAFT_QUALITY = 1 PROOF_QUALITY = 2 NONANTIALIASED_QUALITY = 3 ANTIALIASED_QUALITY = 4 CLEARTYPE_QUALITY = 5 )
Font output quality constants
const ( DEFAULT_PITCH = 0 FIXED_PITCH = 1 VARIABLE_PITCH = 2 )
Font pitch constants
const ( FF_DECORATIVE = 80 FF_DONTCARE = 0 FF_MODERN = 48 FF_ROMAN = 16 FF_SCRIPT = 64 FF_SWISS = 32 )
Font family constants
const ( DC_FIELDS = 1 DC_PAPERS = 2 DC_PAPERSIZE = 3 DC_MINEXTENT = 4 DC_MAXEXTENT = 5 DC_BINS = 6 DC_DUPLEX = 7 DC_SIZE = 8 DC_EXTRA = 9 DC_VERSION = 10 DC_DRIVER = 11 DC_BINNAMES = 12 DC_ENUMRESOLUTIONS = 13 DC_FILEDEPENDENCIES = 14 DC_TRUETYPE = 15 DC_PAPERNAMES = 16 DC_ORIENTATION = 17 DC_COPIES = 18 DC_BINADJUST = 19 DC_EMF_COMPLIANT = 20 DC_DATATYPE_PRODUCED = 21 DC_COLLATE = 22 DC_MANUFACTURER = 23 DC_MODEL = 24 DC_PERSONALITY = 25 DC_PRINTRATE = 26 DC_PRINTRATEUNIT = 27 DC_PRINTERMEM = 28 DC_MEDIAREADY = 29 DC_STAPLE = 30 DC_PRINTRATEPPM = 31 DC_COLORDEVICE = 32 DC_NUP = 33 DC_MEDIATYPENAMES = 34 DC_MEDIATYPES = 35 )
DeviceCapabilities capabilities
const ( CCHDEVICENAME = 32 CCHFORMNAME = 32 )
const ( DM_UPDATE = 1 DM_COPY = 2 DM_PROMPT = 4 DM_MODIFY = 8 DM_IN_BUFFER = DM_MODIFY DM_IN_PROMPT = DM_PROMPT DM_OUT_BUFFER = DM_COPY DM_OUT_DEFAULT = DM_UPDATE )
const ( DM_ORIENTATION = 0x00000001 DM_PAPERSIZE = 0x00000002 DM_PAPERLENGTH = 0x00000004 DM_PAPERWIDTH = 0x00000008 DM_SCALE = 0x00000010 DM_POSITION = 0x00000020 DM_NUP = 0x00000040 DM_DISPLAYORIENTATION = 0x00000080 DM_COPIES = 0x00000100 DM_DEFAULTSOURCE = 0x00000200 DM_PRINTQUALITY = 0x00000400 DM_COLOR = 0x00000800 DM_DUPLEX = 0x00001000 DM_YRESOLUTION = 0x00002000 DM_TTOPTION = 0x00004000 DM_COLLATE = 0x00008000 DM_FORMNAME = 0x00010000 DM_LOGPIXELS = 0x00020000 DM_BITSPERPEL = 0x00040000 DM_PELSWIDTH = 0x00080000 DM_PELSHEIGHT = 0x00100000 DM_DISPLAYFLAGS = 0x00200000 DM_DISPLAYFREQUENCY = 0x00400000 DM_ICMMETHOD = 0x00800000 DM_ICMINTENT = 0x01000000 DM_MEDIATYPE = 0x02000000 DM_DITHERTYPE = 0x04000000 DM_PANNINGWIDTH = 0x08000000 DM_PANNINGHEIGHT = 0x10000000 DM_DISPLAYFIXEDOUTPUT = 0x20000000 )
DEVMODE field selection bits
const ( DMORIENT_PORTRAIT = 1 DMORIENT_LANDSCAPE = 2 )
Orientation constants
const ( DMPAPER_FIRST = DMPAPER_LETTER DMPAPER_LETTER = 1 /* Letter 8 1/2 x 11 in */ DMPAPER_LETTERSMALL = 2 /* Letter Small 8 1/2 x 11 in */ DMPAPER_TABLOID = 3 /* Tabloid 11 x 17 in */ DMPAPER_LEDGER = 4 /* Ledger 17 x 11 in */ DMPAPER_LEGAL = 5 /* Legal 8 1/2 x 14 in */ DMPAPER_STATEMENT = 6 /* Statement 5 1/2 x 8 1/2 in */ DMPAPER_EXECUTIVE = 7 /* Executive 7 1/4 x 10 1/2 in */ DMPAPER_A3 = 8 /* A3 297 x 420 mm */ DMPAPER_A4 = 9 /* A4 210 x 297 mm */ DMPAPER_A4SMALL = 10 /* A4 Small 210 x 297 mm */ DMPAPER_A5 = 11 /* A5 148 x 210 mm */ DMPAPER_B4 = 12 /* B4 (JIS) 250 x 354 */ DMPAPER_B5 = 13 /* B5 (JIS) 182 x 257 mm */ DMPAPER_FOLIO = 14 /* Folio 8 1/2 x 13 in */ DMPAPER_QUARTO = 15 /* Quarto 215 x 275 mm */ DMPAPER_10X14 = 16 /* 10x14 in */ DMPAPER_11X17 = 17 /* 11x17 in */ DMPAPER_NOTE = 18 /* Note 8 1/2 x 11 in */ DMPAPER_ENV_9 = 19 /* Envelope #9 3 7/8 x 8 7/8 */ DMPAPER_ENV_10 = 20 /* Envelope #10 4 1/8 x 9 1/2 */ DMPAPER_ENV_11 = 21 /* Envelope #11 4 1/2 x 10 3/8 */ DMPAPER_ENV_12 = 22 /* Envelope #12 4 \276 x 11 */ DMPAPER_ENV_14 = 23 /* Envelope #14 5 x 11 1/2 */ DMPAPER_CSHEET = 24 /* C size sheet */ DMPAPER_DSHEET = 25 /* D size sheet */ DMPAPER_ESHEET = 26 /* E size sheet */ DMPAPER_ENV_DL = 27 /* Envelope DL 110 x 220mm */ DMPAPER_ENV_C5 = 28 /* Envelope C5 162 x 229 mm */ DMPAPER_ENV_C3 = 29 /* Envelope C3 324 x 458 mm */ DMPAPER_ENV_C4 = 30 /* Envelope C4 229 x 324 mm */ DMPAPER_ENV_C6 = 31 /* Envelope C6 114 x 162 mm */ DMPAPER_ENV_C65 = 32 /* Envelope C65 114 x 229 mm */ DMPAPER_ENV_B4 = 33 /* Envelope B4 250 x 353 mm */ DMPAPER_ENV_B5 = 34 /* Envelope B5 176 x 250 mm */ DMPAPER_ENV_B6 = 35 /* Envelope B6 176 x 125 mm */ DMPAPER_ENV_ITALY = 36 /* Envelope 110 x 230 mm */ DMPAPER_ENV_MONARCH = 37 /* Envelope Monarch 3.875 x 7.5 in */ DMPAPER_ENV_PERSONAL = 38 /* 6 3/4 Envelope 3 5/8 x 6 1/2 in */ DMPAPER_FANFOLD_US = 39 /* US Std Fanfold 14 7/8 x 11 in */ DMPAPER_FANFOLD_STD_GERMAN = 40 /* German Std Fanfold 8 1/2 x 12 in */ DMPAPER_FANFOLD_LGL_GERMAN = 41 /* German Legal Fanfold 8 1/2 x 13 in */ DMPAPER_ISO_B4 = 42 /* B4 (ISO) 250 x 353 mm */ DMPAPER_JAPANESE_POSTCARD = 43 /* Japanese Postcard 100 x 148 mm */ DMPAPER_9X11 = 44 /* 9 x 11 in */ DMPAPER_10X11 = 45 /* 10 x 11 in */ DMPAPER_15X11 = 46 /* 15 x 11 in */ DMPAPER_ENV_INVITE = 47 /* Envelope Invite 220 x 220 mm */ DMPAPER_RESERVED_48 = 48 /* RESERVED--DO NOT USE */ DMPAPER_RESERVED_49 = 49 /* RESERVED--DO NOT USE */ DMPAPER_LETTER_EXTRA = 50 /* Letter Extra 9 \275 x 12 in */ DMPAPER_LEGAL_EXTRA = 51 /* Legal Extra 9 \275 x 15 in */ DMPAPER_TABLOID_EXTRA = 52 /* Tabloid Extra 11.69 x 18 in */ DMPAPER_A4_EXTRA = 53 /* A4 Extra 9.27 x 12.69 in */ DMPAPER_LETTER_TRANSVERSE = 54 /* Letter Transverse 8 \275 x 11 in */ DMPAPER_A4_TRANSVERSE = 55 /* A4 Transverse 210 x 297 mm */ DMPAPER_LETTER_EXTRA_TRANSVERSE = 56 /* Letter Extra Transverse 9\275 x 12 in */ DMPAPER_A_PLUS = 57 /* SuperA/SuperA/A4 227 x 356 mm */ DMPAPER_B_PLUS = 58 /* SuperB/SuperB/A3 305 x 487 mm */ DMPAPER_LETTER_PLUS = 59 /* Letter Plus 8.5 x 12.69 in */ DMPAPER_A4_PLUS = 60 /* A4 Plus 210 x 330 mm */ DMPAPER_A5_TRANSVERSE = 61 /* A5 Transverse 148 x 210 mm */ DMPAPER_B5_TRANSVERSE = 62 /* B5 (JIS) Transverse 182 x 257 mm */ DMPAPER_A3_EXTRA = 63 /* A3 Extra 322 x 445 mm */ DMPAPER_A5_EXTRA = 64 /* A5 Extra 174 x 235 mm */ DMPAPER_B5_EXTRA = 65 /* B5 (ISO) Extra 201 x 276 mm */ DMPAPER_A2 = 66 /* A2 420 x 594 mm */ DMPAPER_A3_TRANSVERSE = 67 /* A3 Transverse 297 x 420 mm */ DMPAPER_A3_EXTRA_TRANSVERSE = 68 /* A3 Extra Transverse 322 x 445 mm */ DMPAPER_DBL_JAPANESE_POSTCARD = 69 /* Japanese Double Postcard 200 x 148 mm */ DMPAPER_A6 = 70 /* A6 105 x 148 mm */ DMPAPER_JENV_KAKU2 = 71 /* Japanese Envelope Kaku #2 */ DMPAPER_JENV_KAKU3 = 72 /* Japanese Envelope Kaku #3 */ DMPAPER_JENV_CHOU3 = 73 /* Japanese Envelope Chou #3 */ DMPAPER_JENV_CHOU4 = 74 /* Japanese Envelope Chou #4 */ DMPAPER_LETTER_ROTATED = 75 /* Letter Rotated 11 x 8 1/2 11 in */ DMPAPER_A3_ROTATED = 76 /* A3 Rotated 420 x 297 mm */ DMPAPER_A4_ROTATED = 77 /* A4 Rotated 297 x 210 mm */ DMPAPER_A5_ROTATED = 78 /* A5 Rotated 210 x 148 mm */ DMPAPER_B4_JIS_ROTATED = 79 /* B4 (JIS) Rotated 364 x 257 mm */ DMPAPER_B5_JIS_ROTATED = 80 /* B5 (JIS) Rotated 257 x 182 mm */ DMPAPER_JAPANESE_POSTCARD_ROTATED = 81 /* Japanese Postcard Rotated 148 x 100 mm */ DMPAPER_DBL_JAPANESE_POSTCARD_ROTATED = 82 /* Double Japanese Postcard Rotated 148 x 200 mm */ DMPAPER_A6_ROTATED = 83 /* A6 Rotated 148 x 105 mm */ DMPAPER_JENV_KAKU2_ROTATED = 84 /* Japanese Envelope Kaku #2 Rotated */ DMPAPER_JENV_KAKU3_ROTATED = 85 /* Japanese Envelope Kaku #3 Rotated */ DMPAPER_JENV_CHOU3_ROTATED = 86 /* Japanese Envelope Chou #3 Rotated */ DMPAPER_JENV_CHOU4_ROTATED = 87 /* Japanese Envelope Chou #4 Rotated */ DMPAPER_B6_JIS = 88 /* B6 (JIS) 128 x 182 mm */ DMPAPER_B6_JIS_ROTATED = 89 /* B6 (JIS) Rotated 182 x 128 mm */ DMPAPER_12X11 = 90 /* 12 x 11 in */ DMPAPER_JENV_YOU4 = 91 /* Japanese Envelope You #4 */ DMPAPER_JENV_YOU4_ROTATED = 92 /* Japanese Envelope You #4 Rotated*/ DMPAPER_P16K = 93 /* PRC 16K 146 x 215 mm */ DMPAPER_P32K = 94 /* PRC 32K 97 x 151 mm */ DMPAPER_P32KBIG = 95 /* PRC 32K(Big) 97 x 151 mm */ DMPAPER_PENV_1 = 96 /* PRC Envelope #1 102 x 165 mm */ DMPAPER_PENV_2 = 97 /* PRC Envelope #2 102 x 176 mm */ DMPAPER_PENV_3 = 98 /* PRC Envelope #3 125 x 176 mm */ DMPAPER_PENV_4 = 99 /* PRC Envelope #4 110 x 208 mm */ DMPAPER_PENV_5 = 100 /* PRC Envelope #5 110 x 220 mm */ DMPAPER_PENV_6 = 101 /* PRC Envelope #6 120 x 230 mm */ DMPAPER_PENV_7 = 102 /* PRC Envelope #7 160 x 230 mm */ DMPAPER_PENV_8 = 103 /* PRC Envelope #8 120 x 309 mm */ DMPAPER_PENV_9 = 104 /* PRC Envelope #9 229 x 324 mm */ DMPAPER_PENV_10 = 105 /* PRC Envelope #10 324 x 458 mm */ DMPAPER_P16K_ROTATED = 106 /* PRC 16K Rotated */ DMPAPER_P32K_ROTATED = 107 /* PRC 32K Rotated */ DMPAPER_P32KBIG_ROTATED = 108 /* PRC 32K(Big) Rotated */ DMPAPER_PENV_1_ROTATED = 109 /* PRC Envelope #1 Rotated 165 x 102 mm */ DMPAPER_PENV_2_ROTATED = 110 /* PRC Envelope #2 Rotated 176 x 102 mm */ DMPAPER_PENV_3_ROTATED = 111 /* PRC Envelope #3 Rotated 176 x 125 mm */ DMPAPER_PENV_4_ROTATED = 112 /* PRC Envelope #4 Rotated 208 x 110 mm */ DMPAPER_PENV_5_ROTATED = 113 /* PRC Envelope #5 Rotated 220 x 110 mm */ DMPAPER_PENV_6_ROTATED = 114 /* PRC Envelope #6 Rotated 230 x 120 mm */ DMPAPER_PENV_7_ROTATED = 115 /* PRC Envelope #7 Rotated 230 x 160 mm */ DMPAPER_PENV_8_ROTATED = 116 /* PRC Envelope #8 Rotated 309 x 120 mm */ DMPAPER_PENV_9_ROTATED = 117 /* PRC Envelope #9 Rotated 324 x 229 mm */ DMPAPER_PENV_10_ROTATED = 118 /* PRC Envelope #10 Rotated 458 x 324 mm */ DMPAPER_LAST = DMPAPER_PENV_10_ROTATED DMPAPER_USER = 256 )
Paper sizes
const ( DMBIN_FIRST = DMBIN_UPPER DMBIN_UPPER = 1 DMBIN_ONLYONE = 1 DMBIN_LOWER = 2 DMBIN_MIDDLE = 3 DMBIN_MANUAL = 4 DMBIN_ENVELOPE = 5 DMBIN_ENVMANUAL = 6 DMBIN_AUTO = 7 DMBIN_TRACTOR = 8 DMBIN_SMALLFMT = 9 DMBIN_LARGEFMT = 10 DMBIN_LARGECAPACITY = 11 DMBIN_CASSETTE = 14 DMBIN_FORMSOURCE = 15 DMBIN_LAST = DMBIN_FORMSOURCE DMBIN_USER = 256 )
Bin constants
const ( DMRES_DRAFT = -1 DMRES_LOW = -2 DMRES_MEDIUM = -3 DMRES_HIGH = -4 )
Quality constants
const ( DMCOLOR_MONOCHROME = 1 DMCOLOR_COLOR = 2 )
Color/monochrome constants
const ( DMDUP_SIMPLEX = 1 DMDUP_VERTICAL = 2 DMDUP_HORIZONTAL = 3 )
Duplex constants
const ( DMTT_BITMAP = 1 DMTT_DOWNLOAD = 2 DMTT_SUBDEV = 3 DMTT_DOWNLOAD_OUTLINE = 4 )
TrueType constants
const ( DMCOLLATE_FALSE = 0 DMCOLLATE_TRUE = 1 )
Collation constants
const ( TRANSPARENT = 1 OPAQUE = 2 )
Background modes
const ( SRCCOPY = 0x00CC0020 SRCPAINT = 0x00EE0086 SRCAND = 0x008800C6 SRCINVERT = 0x00660046 SRCERASE = 0x00440328 NOTSRCCOPY = 0x00330008 NOTSRCERASE = 0x001100A6 MERGECOPY = 0x00C000CA MERGEPAINT = 0x00BB0226 PATCOPY = 0x00F00021 PATPAINT = 0x00FB0A09 PATINVERT = 0x005A0049 DSTINVERT = 0x00550009 BLACKNESS = 0x00000042 WHITENESS = 0x00FF0062 NOMIRRORBITMAP = 0x80000000 CAPTUREBLT = 0x40000000 )
Ternary raster operations
const ( BLACKONWHITE = 1 WHITEONBLACK = 2 COLORONCOLOR = 3 HALFTONE = 4 MAXSTRETCHBLTMODE = 4 STRETCH_ANDSCANS = BLACKONWHITE STRETCH_ORSCANS = WHITEONBLACK STRETCH_DELETESCANS = COLORONCOLOR STRETCH_HALFTONE = HALFTONE )
StretchBlt modes
const ( BI_RGB = 0 BI_RLE8 = 1 BI_RLE4 = 2 BI_BITFIELDS = 3 BI_JPEG = 4 BI_PNG = 5 )
Bitmap compression constants
const ( DIB_RGB_COLORS = 0 DIB_PAL_COLORS = 1 )
Bitmap color table usage
const ( CLR_INVALID = 0xFFFFFFFF CLR_NONE = CLR_INVALID CLR_DEFAULT = 0xFF000000 )
const ( /* pixel types */ PFD_TYPE_RGBA = 0 PFD_TYPE_COLORINDEX = 1 /* layer types */ PFD_MAIN_PLANE = 0 PFD_OVERLAY_PLANE = 1 PFD_UNDERLAY_PLANE = (-1) /* PIXELFORMATDESCRIPTOR flags */ PFD_DOUBLEBUFFER = 0x00000001 PFD_STEREO = 0x00000002 PFD_DRAW_TO_WINDOW = 0x00000004 PFD_DRAW_TO_BITMAP = 0x00000008 PFD_SUPPORT_GDI = 0x00000010 PFD_SUPPORT_OPENGL = 0x00000020 PFD_GENERIC_FORMAT = 0x00000040 PFD_NEED_PALETTE = 0x00000080 PFD_NEED_SYSTEM_PALETTE = 0x00000100 PFD_SWAP_EXCHANGE = 0x00000200 PFD_SWAP_COPY = 0x00000400 PFD_SWAP_LAYER_BUFFERS = 0x00000800 PFD_GENERIC_ACCELERATED = 0x00001000 PFD_SUPPORT_DIRECTDRAW = 0x00002000 /* PIXELFORMATDESCRIPTOR flags for use in ChoosePixelFormat only */ PFD_DEPTH_DONTCARE = 0x20000000 PFD_DOUBLEBUFFER_DONTCARE = 0x40000000 PFD_STEREO_DONTCARE = 0x80000000 )
const ( GRADIENT_FILL_RECT_H = 0x00 GRADIENT_FILL_RECT_V = 0x01 GRADIENT_FILL_TRIANGLE = 0x02 )
GradientFill constants
const ( RGN_AND = 1 RGN_OR = 2 RGN_XOR = 3 RGN_DIFF = 4 RGN_COPY = 5 )
Region Combine Modes
const ( REGIONERROR = 0 NULLREGION = 1 SIMPLEREGION = 2 COMPLEXREGION = 3 )
Region Types
const ( FR_PRIVATE = 0x10 FR_NOT_ENUM = 0x20 )
AddFontResourceEx flags
const ( ERROR_SUCCESS = 0 ERROR_INVALID_FUNCTION = 1 ERROR_FILE_NOT_FOUND = 2 ERROR_INVALID_PARAMETER = 87 ERROR_INSUFFICIENT_BUFFER = 122 ERROR_MORE_DATA = 234 )
Error codes
const ( GHND = 0x0042 GMEM_FIXED = 0x0000 GMEM_MOVEABLE = 0x0002 GMEM_ZEROINIT = 0x0040 GPTR = GMEM_FIXED | GMEM_ZEROINIT )
GlobalAlloc flags
const ( MIIM_STATE = 1 MIIM_ID = 2 MIIM_SUBMENU = 4 MIIM_CHECKMARKS = 8 MIIM_TYPE = 16 MIIM_DATA = 32 MIIM_STRING = 64 MIIM_BITMAP = 128 MIIM_FTYPE = 256 )
Constants for MENUITEMINFO.fMask
const ( MFT_STRING = MF_STRING MFT_BITMAP = MF_BITMAP MFT_MENUBARBREAK = MF_MENUBARBREAK MFT_MENUBREAK = MF_MENUBREAK MFT_OWNERDRAW = MF_OWNERDRAW MFT_RADIOCHECK = 0x00000200 MFT_SEPARATOR = MF_SEPARATOR MFT_RIGHTORDER = 0x00002000 MFT_RIGHTJUSTIFY = MF_RIGHTJUSTIFY )
Constants for MENUITEMINFO.fType
const ( MFS_GRAYED = 0x00000003 MFS_DISABLED = MFS_GRAYED MFS_CHECKED = MF_CHECKED MFS_HILITE = MF_HILITE MFS_ENABLED = MF_ENABLED MFS_UNCHECKED = MF_UNCHECKED MFS_UNHILITE = MF_UNHILITE MFS_DEFAULT = MF_DEFAULT )
Constants for MENUITEMINFO.fState
const ( HBMMENU_CALLBACK = -1 HBMMENU_SYSTEM = 1 HBMMENU_MBAR_RESTORE = 2 HBMMENU_MBAR_MINIMIZE = 3 HBMMENU_MBAR_CLOSE = 5 HBMMENU_MBAR_CLOSE_D = 6 HBMMENU_MBAR_MINIMIZE_D = 7 HBMMENU_POPUP_CLOSE = 8 HBMMENU_POPUP_RESTORE = 9 HBMMENU_POPUP_MAXIMIZE = 10 HBMMENU_POPUP_MINIMIZE = 11 )
Constants for MENUITEMINFO.hbmp*
const ( MIM_APPLYTOSUBMENUS = 0x80000000 MIM_BACKGROUND = 0x00000002 MIM_HELPID = 0x00000004 MIM_MAXHEIGHT = 0x00000001 MIM_MENUDATA = 0x00000008 MIM_STYLE = 0x00000010 )
MENUINFO mask constants
const ( MNS_AUTODISMISS = 0x10000000 MNS_CHECKORBMP = 0x04000000 MNS_DRAGDROP = 0x20000000 MNS_MODELESS = 0x40000000 MNS_NOCHECK = 0x80000000 MNS_NOTIFYBYPOS = 0x08000000 )
MENUINFO style constants
const ( // Menu flags for Add/Check/EnableMenuItem() MF_INSERT = 0x00000000 MF_CHANGE = 0x00000080 MF_APPEND = 0x00000100 MF_DELETE = 0x00000200 MF_REMOVE = 0x00001000 MF_BYCOMMAND = 0x00000000 MF_BYPOSITION = 0x00000400 MF_SEPARATOR = 0x00000800 MF_ENABLED = 0x00000000 MF_GRAYED = 0x00000001 MF_DISABLED = 0x00000002 MF_UNCHECKED = 0x00000000 MF_CHECKED = 0x00000008 MF_USECHECKBITMAPS = 0x00000200 MF_STRING = 0x00000000 MF_BITMAP = 0x00000004 MF_OWNERDRAW = 0x00000100 MF_POPUP = 0x00000010 MF_MENUBARBREAK = 0x00000020 MF_MENUBREAK = 0x00000040 MF_UNHILITE = 0x00000000 MF_HILITE = 0x00000080 MF_DEFAULT = 0x00001000 MF_SYSMENU = 0x00002000 MF_HELP = 0x00004000 MF_RIGHTJUSTIFY = 0x00004000 MF_MOUSESELECT = 0x00008000 )
const ( MB_OK = 0x00000000 MB_OKCANCEL = 0x00000001 MB_ABORTRETRYIGNORE = 0x00000002 MB_YESNOCANCEL = 0x00000003 MB_YESNO = 0x00000004 MB_RETRYCANCEL = 0x00000005 MB_CANCELTRYCONTINUE = 0x00000006 MB_ICONHAND = 0x00000010 MB_ICONQUESTION = 0x00000020 MB_ICONEXCLAMATION = 0x00000030 MB_ICONASTERISK = 0x00000040 MB_USERICON = 0x00000080 MB_ICONWARNING = MB_ICONEXCLAMATION MB_ICONERROR = MB_ICONHAND MB_ICONINFORMATION = MB_ICONASTERISK MB_ICONSTOP = MB_ICONHAND MB_DEFBUTTON1 = 0x00000000 MB_DEFBUTTON2 = 0x00000100 MB_DEFBUTTON3 = 0x00000200 MB_DEFBUTTON4 = 0x00000300 MB_APPLMODAL = 0x00000000 MB_SYSTEMMODAL = 0x00001000 MB_TASKMODAL = 0x00002000 MB_HELP = 0x00004000 MB_SETFOREGROUND = 0x00010000 MB_DEFAULT_DESKTOP_ONLY = 0x00020000 MB_TOPMOST = 0x00040000 MB_RIGHT = 0x00080000 MB_RTLREADING = 0x00100000 MB_SERVICE_NOTIFICATION = 0x00200000 )
MessageBox constants
const ( IDOK = 1 IDCANCEL = 2 IDABORT = 3 IDRETRY = 4 IDIGNORE = 5 IDYES = 6 IDNO = 7 IDCLOSE = 8 IDHELP = 9 IDTRYAGAIN = 10 IDCONTINUE = 11 IDTIMEOUT = 32000 )
Dialog box command ids
const ( SC_SIZE = 0xF000 SC_MOVE = 0xF010 SC_MINIMIZE = 0xF020 SC_MAXIMIZE = 0xF030 SC_NEXTWINDOW = 0xF040 SC_PREVWINDOW = 0xF050 SC_CLOSE = 0xF060 SC_VSCROLL = 0xF070 SC_HSCROLL = 0xF080 SC_MOUSEMENU = 0xF090 SC_KEYMENU = 0xF100 SC_ARRANGE = 0xF110 SC_RESTORE = 0xF120 SC_TASKLIST = 0xF130 SC_SCREENSAVE = 0xF140 SC_HOTKEY = 0xF150 SC_DEFAULT = 0xF160 SC_MONITORPOWER = 0xF170 SC_CONTEXTHELP = 0xF180 SC_SEPARATOR = 0xF00F )
System commands
const ( SS_BITMAP = 14 SS_BLACKFRAME = 7 SS_BLACKRECT = 4 SS_CENTER = 1 SS_CENTERIMAGE = 512 SS_EDITCONTROL = 0x2000 SS_ENHMETAFILE = 15 SS_ETCHEDFRAME = 18 SS_ETCHEDHORZ = 16 SS_ETCHEDVERT = 17 SS_GRAYFRAME = 8 SS_GRAYRECT = 5 SS_ICON = 3 SS_LEFT = 0 SS_LEFTNOWORDWRAP = 0xc SS_NOPREFIX = 128 SS_NOTIFY = 256 SS_OWNERDRAW = 0xd SS_REALSIZECONTROL = 0x040 SS_REALSIZEIMAGE = 0x800 SS_RIGHT = 2 SS_RIGHTJUST = 0x400 SS_SIMPLE = 11 SS_SUNKEN = 4096 SS_WHITEFRAME = 9 SS_WHITERECT = 6 SS_USERITEM = 10 SS_TYPEMASK = 0x0000001F SS_ENDELLIPSIS = 0x00004000 SS_PATHELLIPSIS = 0x00008000 SS_WORDELLIPSIS = 0x0000C000 SS_ELLIPSISMASK = 0x0000C000 )
Static control styles
const ( BM_CLICK = 245 BM_GETCHECK = 240 BM_GETIMAGE = 246 BM_GETSTATE = 242 BM_SETCHECK = 241 BM_SETIMAGE = 247 BM_SETSTATE = 243 BM_SETSTYLE = 244 )
Button message constants
const ( BCN_DROPDOWN = 0xfffffb20 BN_CLICKED = 0 BN_PAINT = 1 BN_HILITE = 2 BN_PUSHED = BN_HILITE BN_UNHILITE = 3 BN_UNPUSHED = BN_UNHILITE BN_DISABLE = 4 BN_DOUBLECLICKED = 5 BN_DBLCLK = BN_DOUBLECLICKED BN_SETFOCUS = 6 BN_KILLFOCUS = 7 )
Button notifications
const ( IMAGE_BITMAP = 0 IMAGE_ICON = 1 IMAGE_CURSOR = 2 IMAGE_ENHMETAFILE = 3 )
const ( LR_DEFAULTCOLOR = 0 LR_MONOCHROME = 1 LR_COLOR = 2 LR_COPYRETURNORG = 4 LR_COPYDELETEORG = 8 LR_LOADFROMFILE = 16 LR_LOADTRANSPARENT = 32 LR_LOADREALSIZE = 128 LR_DEFAULTSIZE = 0x0040 LR_VGACOLOR = 0x0080 LR_LOADMAP3DCOLORS = 4096 LR_CREATEDIBSECTION = 8192 LR_COPYFROMRESOURCE = 0x4000 LR_SHARED = 32768 )
const ( BS_3STATE = 5 BS_AUTO3STATE = 6 BS_AUTOCHECKBOX = 3 BS_AUTORADIOBUTTON = 9 BS_BITMAP = 128 BS_BOTTOM = 0x800 BS_CENTER = 0x300 BS_CHECKBOX = 2 BS_DEFPUSHBUTTON = 1 BS_GROUPBOX = 7 BS_ICON = 64 BS_LEFT = 256 BS_LEFTTEXT = 32 BS_MULTILINE = 0x2000 BS_NOTIFY = 0x4000 BS_OWNERDRAW = 0xB BS_PUSHBUTTON = 0 BS_PUSHLIKE = 4096 BS_RADIOBUTTON = 4 BS_RIGHT = 512 BS_RIGHTBUTTON = 32 BS_SPLITBUTTON = 0x0000000c BS_TEXT = 0 BS_TOP = 0x400 BS_USERBUTTON = 8 BS_VCENTER = 0xC00 BS_FLAT = 0x8000 )
Button style constants
const ( PM_NOREMOVE = 0x0000 PM_REMOVE = 0x0001 PM_NOYIELD = 0x0002 )
const ( BST_CHECKED = 1 BST_INDETERMINATE = 2 BST_UNCHECKED = 0 BST_FOCUS = 8 BST_PUSHED = 4 )
Button state constants
const ( COLOR_3DDKSHADOW = 21 COLOR_3DFACE = 15 COLOR_3DHILIGHT = 20 COLOR_3DHIGHLIGHT = 20 COLOR_3DLIGHT = 22 COLOR_BTNHILIGHT = 20 COLOR_3DSHADOW = 16 COLOR_ACTIVEBORDER = 10 COLOR_ACTIVECAPTION = 2 COLOR_APPWORKSPACE = 12 COLOR_BACKGROUND = 1 COLOR_DESKTOP = 1 COLOR_BTNFACE = 15 COLOR_BTNHIGHLIGHT = 20 COLOR_BTNSHADOW = 16 COLOR_BTNTEXT = 18 COLOR_CAPTIONTEXT = 9 COLOR_GRAYTEXT = 17 COLOR_HIGHLIGHT = 13 COLOR_HIGHLIGHTTEXT = 14 COLOR_INACTIVEBORDER = 11 COLOR_INACTIVECAPTION = 3 COLOR_INACTIVECAPTIONTEXT = 19 COLOR_INFOBK = 24 COLOR_INFOTEXT = 23 COLOR_MENU = 4 COLOR_MENUTEXT = 7 COLOR_SCROLLBAR = 0 COLOR_WINDOW = 5 COLOR_WINDOWFRAME = 6 COLOR_WINDOWTEXT = 8 COLOR_HOTLIGHT = 26 COLOR_GRADIENTACTIVECAPTION = 27 COLOR_GRADIENTINACTIVECAPTION = 28 )
Predefined brushes constants
const ( GA_PARENT = 1 GA_ROOT = 2 GA_ROOTOWNER = 3 )
GetAncestor flags
const ( GWL_EXSTYLE = -20 GWL_STYLE = -16 GWL_WNDPROC = -4 GWLP_WNDPROC = -4 GWL_HINSTANCE = -6 GWLP_HINSTANCE = -6 GWL_HWNDPARENT = -8 GWLP_HWNDPARENT = -8 GWL_ID = -12 GWLP_ID = -12 GWL_USERDATA = -21 GWLP_USERDATA = -21 )
GetWindowLong and GetWindowLongPtr constants
const ( HWND_BROADCAST = HWND(0xFFFF) HWND_BOTTOM = HWND(1) HWND_NOTOPMOST = ^HWND(1) // -2 HWND_TOP = HWND(0) HWND_TOPMOST = ^HWND(0) // -1 HWND_DESKTOP = HWND(0) HWND_MESSAGE = ^HWND(2) // -3 )
Predefined window handles
const ( IDI_APPLICATION = 32512 IDI_HAND = 32513 IDI_QUESTION = 32514 IDI_EXCLAMATION = 32515 IDI_ASTERISK = 32516 IDI_WINLOGO = 32517 IDI_SHIELD = 32518 IDI_WARNING = IDI_EXCLAMATION IDI_ERROR = IDI_HAND IDI_INFORMATION = IDI_ASTERISK )
Predefined icon constants
const ( IDC_ARROW = 32512 IDC_IBEAM = 32513 IDC_WAIT = 32514 IDC_CROSS = 32515 IDC_UPARROW = 32516 IDC_SIZENWSE = 32642 IDC_SIZENESW = 32643 IDC_SIZEWE = 32644 IDC_SIZENS = 32645 IDC_SIZEALL = 32646 IDC_NO = 32648 IDC_HAND = 32649 IDC_APPSTARTING = 32650 IDC_HELP = 32651 IDC_ICON = 32641 IDC_SIZE = 32640 )
Predefined cursor constants
const ( SM_CXSCREEN = 0 SM_CYSCREEN = 1 SM_CXVSCROLL = 2 SM_CYHSCROLL = 3 SM_CYCAPTION = 4 SM_CXBORDER = 5 SM_CYBORDER = 6 SM_CXDLGFRAME = 7 SM_CYDLGFRAME = 8 SM_CYVTHUMB = 9 SM_CXHTHUMB = 10 SM_CXICON = 11 SM_CYICON = 12 SM_CXCURSOR = 13 SM_CYCURSOR = 14 SM_CYMENU = 15 SM_CXFULLSCREEN = 16 SM_CYFULLSCREEN = 17 SM_CYKANJIWINDOW = 18 SM_MOUSEPRESENT = 19 SM_CYVSCROLL = 20 SM_CXHSCROLL = 21 SM_DEBUG = 22 SM_SWAPBUTTON = 23 SM_RESERVED1 = 24 SM_RESERVED2 = 25 SM_RESERVED3 = 26 SM_RESERVED4 = 27 SM_CXMIN = 28 SM_CYMIN = 29 SM_CXSIZE = 30 SM_CYSIZE = 31 SM_CXFRAME = 32 SM_CYFRAME = 33 SM_CXMINTRACK = 34 SM_CYMINTRACK = 35 SM_CXDOUBLECLK = 36 SM_CYDOUBLECLK = 37 SM_CXICONSPACING = 38 SM_CYICONSPACING = 39 SM_MENUDROPALIGNMENT = 40 SM_PENWINDOWS = 41 SM_DBCSENABLED = 42 SM_CMOUSEBUTTONS = 43 SM_CXFIXEDFRAME = SM_CXDLGFRAME SM_CYFIXEDFRAME = SM_CYDLGFRAME SM_CXSIZEFRAME = SM_CXFRAME SM_CYSIZEFRAME = SM_CYFRAME SM_SECURE = 44 SM_CXEDGE = 45 SM_CYEDGE = 46 SM_CXMINSPACING = 47 SM_CYMINSPACING = 48 SM_CXSMICON = 49 SM_CYSMICON = 50 SM_CYSMCAPTION = 51 SM_CXSMSIZE = 52 SM_CYSMSIZE = 53 SM_CXMENUSIZE = 54 SM_CYMENUSIZE = 55 SM_ARRANGE = 56 SM_CXMINIMIZED = 57 SM_CYMINIMIZED = 58 SM_CXMAXTRACK = 59 SM_CYMAXTRACK = 60 SM_CXMAXIMIZED = 61 SM_CYMAXIMIZED = 62 SM_NETWORK = 63 SM_CLEANBOOT = 67 SM_CXDRAG = 68 SM_CYDRAG = 69 SM_SHOWSOUNDS = 70 SM_CXMENUCHECK = 71 SM_CYMENUCHECK = 72 SM_SLOWMACHINE = 73 SM_MIDEASTENABLED = 74 SM_MOUSEWHEELPRESENT = 75 SM_XVIRTUALSCREEN = 76 SM_YVIRTUALSCREEN = 77 SM_CXVIRTUALSCREEN = 78 SM_CYVIRTUALSCREEN = 79 SM_CMONITORS = 80 SM_SAMEDISPLAYFORMAT = 81 SM_IMMENABLED = 82 SM_CXFOCUSBORDER = 83 SM_CYFOCUSBORDER = 84 SM_TABLETPC = 86 SM_MEDIACENTER = 87 SM_STARTER = 88 SM_SERVERR2 = 89 SM_CMETRICS = 91 SM_REMOTESESSION = 0x1000 SM_SHUTTINGDOWN = 0x2000 SM_REMOTECONTROL = 0x2001 SM_CARETBLINKINGENABLED = 0x2002 )
GetSystemMetrics constants
const ( SW_HIDE = 0 SW_NORMAL = 1 SW_SHOWNORMAL = 1 SW_SHOWMINIMIZED = 2 SW_MAXIMIZE = 3 SW_SHOWMAXIMIZED = 3 SW_SHOWNOACTIVATE = 4 SW_SHOW = 5 SW_MINIMIZE = 6 SW_SHOWMINNOACTIVE = 7 SW_SHOWNA = 8 SW_RESTORE = 9 SW_SHOWDEFAULT = 10 SW_FORCEMINIMIZE = 11 )
ShowWindow constants
const ( SWP_DRAWFRAME = 0x0020 SWP_FRAMECHANGED = 0x0020 SWP_HIDEWINDOW = 0x0080 SWP_NOACTIVATE = 0x0010 SWP_NOCOPYBITS = 0x0100 SWP_NOMOVE = 0x0002 SWP_NOSIZE = 0x0001 SWP_NOREDRAW = 0x0008 SWP_NOZORDER = 0x0004 SWP_SHOWWINDOW = 0x0040 SWP_NOOWNERZORDER = 0x0200 SWP_NOREPOSITION = SWP_NOOWNERZORDER SWP_NOSENDCHANGING = 0x0400 SWP_DEFERERASE = 0x2000 SWP_ASYNCWINDOWPOS = 0x4000 )
SetWindowPos flags
const ( UIS_SET = 1 UIS_CLEAR = 2 UIS_INITIALIZE = 3 )
UI state constants
const ( UISF_HIDEFOCUS = 0x1 UISF_HIDEACCEL = 0x2 UISF_ACTIVE = 0x4 )
UI state constants
const ( VK_LBUTTON = 1 VK_RBUTTON = 2 VK_CANCEL = 3 VK_MBUTTON = 4 VK_XBUTTON1 = 5 VK_XBUTTON2 = 6 VK_BACK = 8 VK_TAB = 9 VK_CLEAR = 12 VK_RETURN = 13 VK_SHIFT = 16 VK_CONTROL = 17 VK_MENU = 18 VK_PAUSE = 19 VK_CAPITAL = 20 VK_KANA = 0x15 VK_HANGEUL = 0x15 VK_HANGUL = 0x15 VK_JUNJA = 0x17 VK_FINAL = 0x18 VK_HANJA = 0x19 VK_KANJI = 0x19 VK_ESCAPE = 0x1B VK_CONVERT = 0x1C VK_NONCONVERT = 0x1D VK_ACCEPT = 0x1E VK_MODECHANGE = 0x1F VK_SPACE = 32 VK_PRIOR = 33 VK_NEXT = 34 VK_END = 35 VK_HOME = 36 VK_LEFT = 37 VK_UP = 38 VK_RIGHT = 39 VK_DOWN = 40 VK_SELECT = 41 VK_PRINT = 42 VK_EXECUTE = 43 VK_SNAPSHOT = 44 VK_INSERT = 45 VK_DELETE = 46 VK_HELP = 47 VK_LWIN = 0x5B VK_RWIN = 0x5C VK_APPS = 0x5D VK_SLEEP = 0x5F VK_NUMPAD0 = 0x60 VK_NUMPAD1 = 0x61 VK_NUMPAD2 = 0x62 VK_NUMPAD3 = 0x63 VK_NUMPAD4 = 0x64 VK_NUMPAD5 = 0x65 VK_NUMPAD6 = 0x66 VK_NUMPAD7 = 0x67 VK_NUMPAD8 = 0x68 VK_NUMPAD9 = 0x69 VK_MULTIPLY = 0x6A VK_ADD = 0x6B VK_SEPARATOR = 0x6C VK_SUBTRACT = 0x6D VK_DECIMAL = 0x6E VK_DIVIDE = 0x6F VK_F1 = 0x70 VK_F2 = 0x71 VK_F3 = 0x72 VK_F4 = 0x73 VK_F5 = 0x74 VK_F6 = 0x75 VK_F7 = 0x76 VK_F8 = 0x77 VK_F9 = 0x78 VK_F10 = 0x79 VK_F11 = 0x7A VK_F12 = 0x7B VK_F13 = 0x7C VK_F14 = 0x7D VK_F15 = 0x7E VK_F16 = 0x7F VK_F17 = 0x80 VK_F18 = 0x81 VK_F19 = 0x82 VK_F20 = 0x83 VK_F21 = 0x84 VK_F22 = 0x85 VK_F23 = 0x86 VK_F24 = 0x87 VK_NUMLOCK = 0x90 VK_SCROLL = 0x91 VK_LSHIFT = 0xA0 VK_RSHIFT = 0xA1 VK_LCONTROL = 0xA2 VK_RCONTROL = 0xA3 VK_LMENU = 0xA4 VK_RMENU = 0xA5 VK_BROWSER_BACK = 0xA6 VK_BROWSER_FORWARD = 0xA7 VK_BROWSER_REFRESH = 0xA8 VK_BROWSER_STOP = 0xA9 VK_BROWSER_SEARCH = 0xAA VK_BROWSER_FAVORITES = 0xAB VK_BROWSER_HOME = 0xAC VK_VOLUME_MUTE = 0xAD VK_VOLUME_DOWN = 0xAE VK_VOLUME_UP = 0xAF VK_MEDIA_NEXT_TRACK = 0xB0 VK_MEDIA_PREV_TRACK = 0xB1 VK_MEDIA_STOP = 0xB2 VK_MEDIA_PLAY_PAUSE = 0xB3 VK_LAUNCH_MAIL = 0xB4 VK_LAUNCH_MEDIA_SELECT = 0xB5 VK_LAUNCH_APP1 = 0xB6 VK_LAUNCH_APP2 = 0xB7 VK_OEM_1 = 0xBA VK_OEM_PLUS = 0xBB VK_OEM_COMMA = 0xBC VK_OEM_MINUS = 0xBD VK_OEM_PERIOD = 0xBE VK_OEM_2 = 0xBF VK_OEM_3 = 0xC0 VK_OEM_4 = 0xDB VK_OEM_5 = 0xDC VK_OEM_6 = 0xDD VK_OEM_7 = 0xDE VK_OEM_8 = 0xDF VK_OEM_102 = 0xE2 VK_PROCESSKEY = 0xE5 VK_PACKET = 0xE7 VK_ATTN = 0xF6 VK_CRSEL = 0xF7 VK_EXSEL = 0xF8 VK_EREOF = 0xF9 VK_PLAY = 0xFA VK_ZOOM = 0xFB VK_NONAME = 0xFC VK_PA1 = 0xFD VK_OEM_CLEAR = 0xFE )
Virtual key codes
const ( WS_OVERLAPPED = 0x00000000 WS_POPUP = 0x80000000 WS_CHILD = 0x40000000 WS_MINIMIZE = 0x20000000 WS_VISIBLE = 0x10000000 WS_DISABLED = 0x08000000 WS_CLIPSIBLINGS = 0x04000000 WS_CLIPCHILDREN = 0x02000000 WS_MAXIMIZE = 0x01000000 WS_CAPTION = 0x00C00000 WS_BORDER = 0x00800000 WS_DLGFRAME = 0x00400000 WS_VSCROLL = 0x00200000 WS_HSCROLL = 0x00100000 WS_SYSMENU = 0x00080000 WS_THICKFRAME = 0x00040000 WS_GROUP = 0x00020000 WS_TABSTOP = 0x00010000 WS_MINIMIZEBOX = 0x00020000 WS_MAXIMIZEBOX = 0x00010000 WS_TILED = 0x00000000 WS_ICONIC = 0x20000000 WS_SIZEBOX = 0x00040000 WS_OVERLAPPEDWINDOW = 0x00000000 | 0x00C00000 | 0x00080000 | 0x00040000 | 0x00020000 | 0x00010000 WS_POPUPWINDOW = 0x80000000 | 0x00800000 | 0x00080000 WS_CHILDWINDOW = 0x40000000 )
Window style constants
const ( WS_EX_DLGMODALFRAME = 0x00000001 WS_EX_NOPARENTNOTIFY = 0x00000004 WS_EX_TOPMOST = 0x00000008 WS_EX_ACCEPTFILES = 0x00000010 WS_EX_TRANSPARENT = 0x00000020 WS_EX_MDICHILD = 0x00000040 WS_EX_TOOLWINDOW = 0x00000080 WS_EX_WINDOWEDGE = 0x00000100 WS_EX_CLIENTEDGE = 0x00000200 WS_EX_CONTEXTHELP = 0x00000400 WS_EX_RIGHT = 0x00001000 WS_EX_LEFT = 0x00000000 WS_EX_RTLREADING = 0x00002000 WS_EX_LTRREADING = 0x00000000 WS_EX_LEFTSCROLLBAR = 0x00004000 WS_EX_RIGHTSCROLLBAR = 0x00000000 WS_EX_CONTROLPARENT = 0x00010000 WS_EX_STATICEDGE = 0x00020000 WS_EX_APPWINDOW = 0x00040000 WS_EX_OVERLAPPEDWINDOW = 0x00000100 | 0x00000200 WS_EX_PALETTEWINDOW = 0x00000100 | 0x00000080 | 0x00000008 WS_EX_LAYERED = 0x00080000 WS_EX_NOINHERITLAYOUT = 0x00100000 WS_EX_LAYOUTRTL = 0x00400000 WS_EX_COMPOSITED = 0x02000000 WS_EX_NOACTIVATE = 0x08000000 )
Extended window style constants
const ( WM_APP = 32768 WM_ACTIVATE = 6 WM_ACTIVATEAPP = 28 WM_AFXFIRST = 864 WM_AFXLAST = 895 WM_ASKCBFORMATNAME = 780 WM_CANCELJOURNAL = 75 WM_CANCELMODE = 31 WM_CAPTURECHANGED = 533 WM_CHANGECBCHAIN = 781 WM_CHAR = 258 WM_CHARTOITEM = 47 WM_CHILDACTIVATE = 34 WM_CLEAR = 771 WM_CLOSE = 16 WM_COMMAND = 273 WM_COMMNOTIFY = 68 /* OBSOLETE */ WM_COMPACTING = 65 WM_COMPAREITEM = 57 WM_CONTEXTMENU = 123 WM_COPY = 769 WM_COPYDATA = 74 WM_CREATE = 1 WM_CTLCOLORBTN = 309 WM_CTLCOLORDLG = 310 WM_CTLCOLOREDIT = 307 WM_CTLCOLORLISTBOX = 308 WM_CTLCOLORMSGBOX = 306 WM_CTLCOLORSCROLLBAR = 311 WM_CTLCOLORSTATIC = 312 WM_CUT = 768 WM_DEADCHAR = 259 WM_DELETEITEM = 45 WM_DESTROY = 2 WM_DESTROYCLIPBOARD = 775 WM_DEVICECHANGE = 537 WM_DEVMODECHANGE = 27 WM_DISPLAYCHANGE = 126 WM_DPICHANGED = 0x02E0 WM_DRAWCLIPBOARD = 776 WM_DRAWITEM = 43 WM_DROPFILES = 563 WM_ENABLE = 10 WM_ENDSESSION = 22 WM_ENTERIDLE = 289 WM_ENTERMENULOOP = 529 WM_ENTERSIZEMOVE = 561 WM_ERASEBKGND = 20 WM_EXITMENULOOP = 530 WM_EXITSIZEMOVE = 562 WM_FONTCHANGE = 29 WM_GETDLGCODE = 135 WM_GETFONT = 49 WM_GETHOTKEY = 51 WM_GETICON = 127 WM_GETMINMAXINFO = 36 WM_GETTEXT = 13 WM_GETTEXTLENGTH = 14 WM_HANDHELDFIRST = 856 WM_HANDHELDLAST = 863 WM_HELP = 83 WM_HOTKEY = 786 WM_HSCROLL = 276 WM_HSCROLLCLIPBOARD = 782 WM_ICONERASEBKGND = 39 WM_INITDIALOG = 272 WM_INITMENU = 278 WM_INITMENUPOPUP = 279 WM_INPUT = 0x00FF WM_INPUTLANGCHANGE = 81 WM_INPUTLANGCHANGEREQUEST = 80 WM_KEYDOWN = 256 WM_KEYUP = 257 WM_KILLFOCUS = 8 WM_MDIACTIVATE = 546 WM_MDICASCADE = 551 WM_MDICREATE = 544 WM_MDIDESTROY = 545 WM_MDIGETACTIVE = 553 WM_MDIICONARRANGE = 552 WM_MDIMAXIMIZE = 549 WM_MDINEXT = 548 WM_MDIREFRESHMENU = 564 WM_MDIRESTORE = 547 WM_MDISETMENU = 560 WM_MDITILE = 550 WM_MEASUREITEM = 44 WM_GETOBJECT = 0x003D WM_CHANGEUISTATE = 0x0127 WM_UPDATEUISTATE = 0x0128 WM_QUERYUISTATE = 0x0129 WM_UNINITMENUPOPUP = 0x0125 WM_MENURBUTTONUP = 290 WM_MENUCOMMAND = 0x0126 WM_MENUGETOBJECT = 0x0124 WM_MENUDRAG = 0x0123 WM_APPCOMMAND = 0x0319 WM_MENUCHAR = 288 WM_MENUSELECT = 287 WM_MOVE = 3 WM_MOVING = 534 WM_NCACTIVATE = 134 WM_NCCALCSIZE = 131 WM_NCCREATE = 129 WM_NCDESTROY = 130 WM_NCHITTEST = 132 WM_NCLBUTTONDBLCLK = 163 WM_NCLBUTTONDOWN = 161 WM_NCLBUTTONUP = 162 WM_NCMBUTTONDBLCLK = 169 WM_NCMBUTTONDOWN = 167 WM_NCMBUTTONUP = 168 WM_NCXBUTTONDOWN = 171 WM_NCXBUTTONUP = 172 WM_NCXBUTTONDBLCLK = 173 WM_NCMOUSEHOVER = 0x02A0 WM_NCMOUSELEAVE = 0x02A2 WM_NCMOUSEMOVE = 160 WM_NCPAINT = 133 WM_NCRBUTTONDBLCLK = 166 WM_NCRBUTTONDOWN = 164 WM_NCRBUTTONUP = 165 WM_NEXTDLGCTL = 40 WM_NEXTMENU = 531 WM_NOTIFY = 78 WM_NOTIFYFORMAT = 85 WM_NULL = 0 WM_PAINT = 15 WM_PAINTCLIPBOARD = 777 WM_PAINTICON = 38 WM_PALETTECHANGED = 785 WM_PALETTEISCHANGING = 784 WM_PARENTNOTIFY = 528 WM_PASTE = 770 WM_PENWINFIRST = 896 WM_PENWINLAST = 911 WM_POWER = 72 WM_POWERBROADCAST = 536 WM_PRINT = 791 WM_PRINTCLIENT = 792 WM_QUERYDRAGICON = 55 WM_QUERYENDSESSION = 17 WM_QUERYNEWPALETTE = 783 WM_QUERYOPEN = 19 WM_QUEUESYNC = 35 WM_QUIT = 18 WM_RENDERALLFORMATS = 774 WM_RENDERFORMAT = 773 WM_SETCURSOR = 32 WM_SETFOCUS = 7 WM_SETFONT = 48 WM_SETHOTKEY = 50 WM_SETICON = 128 WM_SETREDRAW = 11 WM_SETTEXT = 12 WM_SETTINGCHANGE = 26 WM_SHOWWINDOW = 24 WM_SIZE = 5 WM_SIZECLIPBOARD = 779 WM_SIZING = 532 WM_SPOOLERSTATUS = 42 WM_STYLECHANGED = 125 WM_STYLECHANGING = 124 WM_SYSCHAR = 262 WM_SYSCOLORCHANGE = 21 WM_SYSCOMMAND = 274 WM_SYSDEADCHAR = 263 WM_SYSKEYDOWN = 260 WM_SYSKEYUP = 261 WM_TCARD = 82 WM_THEMECHANGED = 794 WM_TIMECHANGE = 30 WM_TIMER = 275 WM_UNDO = 772 WM_USER = 1024 WM_USERCHANGED = 84 WM_VKEYTOITEM = 46 WM_VSCROLL = 277 WM_VSCROLLCLIPBOARD = 778 WM_WINDOWPOSCHANGED = 71 WM_WINDOWPOSCHANGING = 70 WM_WININICHANGE = 26 WM_KEYFIRST = 256 WM_KEYLAST = 264 WM_SYNCPAINT = 136 WM_MOUSEACTIVATE = 33 WM_MOUSEMOVE = 512 WM_LBUTTONDOWN = 513 WM_LBUTTONUP = 514 WM_LBUTTONDBLCLK = 515 WM_RBUTTONDOWN = 516 WM_RBUTTONUP = 517 WM_RBUTTONDBLCLK = 518 WM_MBUTTONDOWN = 519 WM_MBUTTONUP = 520 WM_MBUTTONDBLCLK = 521 WM_MOUSEWHEEL = 522 WM_MOUSEFIRST = 512 WM_XBUTTONDOWN = 523 WM_XBUTTONUP = 524 WM_XBUTTONDBLCLK = 525 WM_MOUSELAST = 525 WM_MOUSEHOVER = 0x2A1 WM_MOUSELEAVE = 0x2A3 WM_CLIPBOARDUPDATE = 0x031D WM_UNICHAR = 0x0109 )
Window message constants
const ( CHILDID_SELF = 0 INDEXID_OBJECT = 0 INDEXID_CONTAINER = 0 OBJID_WINDOW = int32(0x00000000) OBJID_SYSMENU = int32(-((0xFFFFFFFF ^ 0xFFFFFFFF) + 1)) OBJID_TITLEBAR = int32(-((0xFFFFFFFE ^ 0xFFFFFFFF) + 1)) OBJID_MENU = int32(-((0xFFFFFFFD ^ 0xFFFFFFFF) + 1)) OBJID_CLIENT = int32(-((0xFFFFFFFC ^ 0xFFFFFFFF) + 1)) OBJID_VSCROLL = int32(-((0xFFFFFFFB ^ 0xFFFFFFFF) + 1)) OBJID_HSCROLL = int32(-((0xFFFFFFFA ^ 0xFFFFFFFF) + 1)) OBJID_SIZEGRIP = int32(-((0xFFFFFFF9 ^ 0xFFFFFFFF) + 1)) OBJID_CARET = int32(-((0xFFFFFFF8 ^ 0xFFFFFFFF) + 1)) OBJID_CURSOR = int32(-((0xFFFFFFF7 ^ 0xFFFFFFFF) + 1)) OBJID_ALERT = int32(-((0xFFFFFFF6 ^ 0xFFFFFFFF) + 1)) OBJID_SOUND = int32(-((0xFFFFFFF5 ^ 0xFFFFFFFF) + 1)) OBJID_QUERYCLASSNAMEIDX = int32(-((0xFFFFFFF4 ^ 0xFFFFFFFF) + 1)) OBJID_NATIVEOM = int32(-((0xFFFFFFF0 ^ 0xFFFFFFFF) + 1)) )
const ( EVENT_MIN = 0x00000001 EVENT_MAX = 0x7FFFFFFF EVENT_SYSTEM_SOUND = 0x0001 EVENT_SYSTEM_ALERT = 0x0002 EVENT_SYSTEM_FOREGROUND = 0x0003 EVENT_SYSTEM_MENUSTART = 0x0004 EVENT_SYSTEM_MENUEND = 0x0005 EVENT_SYSTEM_MENUPOPUPSTART = 0x0006 EVENT_SYSTEM_MENUPOPUPEND = 0x0007 EVENT_SYSTEM_CAPTURESTART = 0x0008 EVENT_SYSTEM_CAPTUREEND = 0x0009 EVENT_SYSTEM_MOVESIZESTART = 0x000A EVENT_SYSTEM_MOVESIZEEND = 0x000B EVENT_SYSTEM_CONTEXTHELPSTART = 0x000C EVENT_SYSTEM_CONTEXTHELPEND = 0x000D EVENT_SYSTEM_DRAGDROPSTART = 0x000E EVENT_SYSTEM_DRAGDROPEND = 0x000F EVENT_SYSTEM_DIALOGSTART = 0x0010 EVENT_SYSTEM_DIALOGEND = 0x0011 EVENT_SYSTEM_SCROLLINGSTART = 0x0012 EVENT_SYSTEM_SCROLLINGEND = 0x0013 EVENT_SYSTEM_SWITCHSTART = 0x0014 EVENT_SYSTEM_SWITCHEND = 0x0015 EVENT_SYSTEM_MINIMIZESTART = 0x0016 EVENT_SYSTEM_MINIMIZEEND = 0x0017 EVENT_SYSTEM_DESKTOPSWITCH = 0x0020 EVENT_SYSTEM_SWITCHER_APPGRABBED = 0x0024 EVENT_SYSTEM_SWITCHER_APPOVERTARGET = 0x0025 EVENT_SYSTEM_SWITCHER_APPDROPPED = 0x0026 EVENT_SYSTEM_SWITCHER_CANCELLED = 0x0027 EVENT_SYSTEM_IME_KEY_NOTIFICATION = 0x0029 EVENT_SYSTEM_END = 0x00FF EVENT_OEM_DEFINED_START = 0x0101 EVENT_OEM_DEFINED_END = 0x01FF EVENT_CONSOLE_CARET = 0x4001 EVENT_CONSOLE_UPDATE_REGION = 0x4002 EVENT_CONSOLE_UPDATE_SIMPLE = 0x4003 EVENT_CONSOLE_UPDATE_SCROLL = 0x4004 EVENT_CONSOLE_LAYOUT = 0x4005 EVENT_CONSOLE_START_APPLICATION = 0x4006 EVENT_CONSOLE_END_APPLICATION = 0x4007 EVENT_CONSOLE_END = 0x40FF EVENT_UIA_EVENTID_START = 0x4E00 EVENT_UIA_EVENTID_END = 0x4EFF EVENT_UIA_PROPID_START = 0x7500 EVENT_UIA_PROPID_END = 0x75FF EVENT_OBJECT_CREATE = 0x8000 EVENT_OBJECT_DESTROY = 0x8001 EVENT_OBJECT_SHOW = 0x8002 EVENT_OBJECT_HIDE = 0x8003 EVENT_OBJECT_REORDER = 0x8004 EVENT_OBJECT_FOCUS = 0x8005 EVENT_OBJECT_SELECTION = 0x8006 EVENT_OBJECT_SELECTIONADD = 0x8007 EVENT_OBJECT_SELECTIONREMOVE = 0x8008 EVENT_OBJECT_SELECTIONWITHIN = 0x8009 EVENT_OBJECT_STATECHANGE = 0x800A EVENT_OBJECT_LOCATIONCHANGE = 0x800B EVENT_OBJECT_NAMECHANGE = 0x800C EVENT_OBJECT_DESCRIPTIONCHANGE = 0x800D EVENT_OBJECT_VALUECHANGE = 0x800E EVENT_OBJECT_PARENTCHANGE = 0x800F EVENT_OBJECT_HELPCHANGE = 0x8010 EVENT_OBJECT_DEFACTIONCHANGE = 0x8011 EVENT_OBJECT_ACCELERATORCHANGE = 0x8012 EVENT_OBJECT_INVOKED = 0x8013 EVENT_OBJECT_TEXTSELECTIONCHANGED = 0x8014 EVENT_OBJECT_CONTENTSCROLLED = 0x8015 EVENT_SYSTEM_ARRANGMENTPREVIEW = 0x8016 EVENT_OBJECT_CLOAKED = 0x8017 EVENT_OBJECT_UNCLOAKED = 0x8018 EVENT_OBJECT_LIVEREGIONCHANGED = 0x8019 EVENT_OBJECT_HOSTEDOBJECTSINVALIDATED = 0x8020 EVENT_OBJECT_DRAGSTART = 0x8021 EVENT_OBJECT_DRAGCANCEL = 0x8022 EVENT_OBJECT_DRAGCOMPLETE = 0x8023 EVENT_OBJECT_DRAGENTER = 0x8024 EVENT_OBJECT_DRAGLEAVE = 0x8025 EVENT_OBJECT_DRAGDROPPED = 0x8026 EVENT_OBJECT_IME_SHOW = 0x8027 EVENT_OBJECT_IME_HIDE = 0x8028 EVENT_OBJECT_IME_CHANGE = 0x8029 EVENT_OBJECT_TEXTEDIT_CONVERSIONTARGETCHANGED = 0x8030 EVENT_OBJECT_END = 0x80FF EVENT_AIA_START = 0xa000 EVENT_AIA_END = 0xafff WINEVENT_OUTOFCONTEXT = 0x0000 WINEVENT_SKIPOWNTHREAD = 0x0001 WINEVENT_SKIPOWNPROCESS = 0x0002 WINEVENT_INCONTEXT = 0x0004 )
event constants
const ( MK_CONTROL = 0x0008 MK_LBUTTON = 0x0001 MK_MBUTTON = 0x0010 MK_RBUTTON = 0x0002 MK_SHIFT = 0x0004 MK_XBUTTON1 = 0x0020 MK_XBUTTON2 = 0x0040 )
mouse button constants
const ( TPM_CENTERALIGN = 0x0004 TPM_LEFTALIGN = 0x0000 TPM_RIGHTALIGN = 0x0008 TPM_BOTTOMALIGN = 0x0020 TPM_TOPALIGN = 0x0000 TPM_VCENTERALIGN = 0x0010 TPM_NONOTIFY = 0x0080 TPM_RETURNCMD = 0x0100 TPM_LEFTBUTTON = 0x0000 TPM_RIGHTBUTTON = 0x0002 TPM_HORNEGANIMATION = 0x0800 TPM_HORPOSANIMATION = 0x0400 TPM_NOANIMATION = 0x4000 TPM_VERNEGANIMATION = 0x2000 TPM_VERPOSANIMATION = 0x1000 TPM_HORIZONTAL = 0x0000 TPM_VERTICAL = 0x0040 )
TrackPopupMenu[Ex] flags
const ( WPF_ASYNCWINDOWPLACEMENT = 0x0004 WPF_RESTORETOMAXIMIZED = 0x0002 WPF_SETMINPOSITION = 0x0001 )
WINDOWPLACEMENT flags
const ( DT_TOP = 0x00000000 DT_LEFT = 0x00000000 DT_CENTER = 0x00000001 DT_RIGHT = 0x00000002 DT_VCENTER = 0x00000004 DT_BOTTOM = 0x00000008 DT_WORDBREAK = 0x00000010 DT_SINGLELINE = 0x00000020 DT_EXPANDTABS = 0x00000040 DT_TABSTOP = 0x00000080 DT_NOCLIP = 0x00000100 DT_EXTERNALLEADING = 0x00000200 DT_CALCRECT = 0x00000400 DT_NOPREFIX = 0x00000800 DT_INTERNAL = 0x00001000 DT_EDITCONTROL = 0x00002000 DT_PATH_ELLIPSIS = 0x00004000 DT_END_ELLIPSIS = 0x00008000 DT_MODIFYSTRING = 0x00010000 DT_RTLREADING = 0x00020000 DT_WORD_ELLIPSIS = 0x00040000 DT_NOFULLWIDTHCHARBREAK = 0x00080000 DT_HIDEPREFIX = 0x00100000 DT_PREFIXONLY = 0x00200000 )
DrawText[Ex] format flags
const ( CS_VREDRAW = 0x00000001 CS_HREDRAW = 0x00000002 CS_KEYCVTWINDOW = 0x00000004 CS_DBLCLKS = 0x00000008 CS_OWNDC = 0x00000020 CS_CLASSDC = 0x00000040 CS_PARENTDC = 0x00000080 CS_NOKEYCVT = 0x00000100 CS_NOCLOSE = 0x00000200 CS_SAVEBITS = 0x00000800 CS_BYTEALIGNCLIENT = 0x00001000 CS_BYTEALIGNWINDOW = 0x00002000 CS_GLOBALCLASS = 0x00004000 CS_IME = 0x00010000 CS_DROPSHADOW = 0x00020000 )
Window class styles
const ( SPI_GETNONCLIENTMETRICS = 0x0029 SPI_GETHIGHCONTRAST = 0x0042 )
SystemParametersInfo actions
const ( DS_ABSALIGN = 0x0001 DS_SYSMODAL = 0x0002 DS_3DLOOK = 0x0004 DS_FIXEDSYS = 0x0008 DS_NOFAILCREATE = 0x0010 DS_LOCALEDIT = 0x0020 DS_SETFONT = 0x0040 DS_MODALFRAME = 0x0080 DS_NOIDLEMSG = 0x0100 DS_SETFOREGROUND = 0x0200 DS_CONTROL = 0x0400 DS_CENTER = 0x0800 DS_CENTERMOUSE = 0x1000 DS_CONTEXTHELP = 0x2000 DS_USEPIXELS = 0x8000 DS_SHELLFONT = (DS_SETFONT | DS_FIXEDSYS) )
Dialog styles
const ( DLGC_BUTTON = 0x2000 DLGC_DEFPUSHBUTTON = 0x0010 DLGC_HASSETSEL = 0x0008 DLGC_RADIOBUTTON = 0x0040 DLGC_STATIC = 0x0100 DLGC_UNDEFPUSHBUTTON = 0x0020 DLGC_WANTALLKEYS = 0x0004 DLGC_WANTARROWS = 0x0001 DLGC_WANTCHARS = 0x0080 DLGC_WANTMESSAGE = 0x0004 DLGC_WANTTAB = 0x0002 )
WM_GETDLGCODE return values
const ( WA_ACTIVE = 1 WA_CLICKACTIVE = 2 WA_INACTIVE = 0 )
WM_ACTIVATE codes
const ( ODA_DRAWENTIRE = 0x0001 ODA_FOCUS = 0x0002 ODA_SELECT = 0x0004 )
Owner drawing actions
const ( ODS_CHECKED = 0x0001 ODS_COMBOBOXEDIT = 0x0002 ODS_DEFAULT = 0x0004 ODS_DISABLED = 0x0008 ODS_FOCUS = 0x0010 ODS_GRAYED = 0x0020 ODS_SELECTED = 0x0040 )
Owner drawing states
const ( RIDEV_APPKEYS = 0x00000400 RIDEV_CAPTUREMOUSE = 0x00000200 RIDEV_DEVNOTIFY = 0x00002000 RIDEV_EXCLUDE = 0x00000010 RIDEV_EXINPUTSINK = 0x00001000 RIDEV_INPUTSINK = 0x00000100 RIDEV_NOHOTKEYS = 0x00000200 RIDEV_NOLEGACY = 0x00000030 RIDEV_PAGEONLY = 0x00000020 RIDEV_REMOVE = 0x00000001 )
Raw input device flags
const ( RID_HEADER = 0x10000005 RID_INPUT = 0x10000003 )
Raw input device command flags
const ( RIM_TYPEHID = 2 RIM_TYPEKEYBOARD = 1 RIM_TYPEMOUSE = 0 )
Raw input type
const ( RI_KEY_MAKE = 0 RI_KEY_BREAK = 1 RI_KEY_E0 = 2 RI_KEY_E1 = 4 )
Raw input scan code information
const ( MOUSE_MOVE_RELATIVE = 0x00 MOUSE_MOVE_ABSOLUTE = 0x01 MOUSE_VIRTUAL_DESKTOP = 0x02 MOUSE_ATTRIBUTES_CHANGED = 0x04 )
Raw input mouse state
const ( RI_MOUSE_LEFT_BUTTON_DOWN = 0x0001 RI_MOUSE_LEFT_BUTTON_UP = 0x0002 RI_MOUSE_MIDDLE_BUTTON_DOWN = 0x0010 RI_MOUSE_MIDDLE_BUTTON_UP = 0x0020 RI_MOUSE_RIGHT_BUTTON_DOWN = 0x0004 RI_MOUSE_RIGHT_BUTTON_UP = 0x0008 RI_MOUSE_BUTTON_1_DOWN = 0x0001 RI_MOUSE_BUTTON_1_UP = 0x0002 RI_MOUSE_BUTTON_2_DOWN = 0x0004 RI_MOUSE_BUTTON_2_UP = 0x0008 RI_MOUSE_BUTTON_3_DOWN = 0x0010 RI_MOUSE_BUTTON_3_UP = 0x0020 RI_MOUSE_BUTTON_4_DOWN = 0x0040 RI_MOUSE_BUTTON_4_UP = 0x0080 RI_MOUSE_BUTTON_5_DOWN = 0x0100 RI_MOUSE_BUTTON_5_UP = 0x0200 RI_MOUSE_WHEEL = 0x0400 )
Raw input transistion state of mouse buttons
const ( MONITOR_DEFAULTTONULL = 0x0 MONITOR_DEFAULTTOPRIMARY = 0x1 MONITOR_DEFAULTTONEAREST = 0x2 )
Multi monitor constants
const ( INPUT_MOUSE = 0 INPUT_KEYBOARD = 1 INPUT_HARDWARE = 2 )
INPUT Type
const ( XBUTTON1 = 0x0001 XBUTTON2 = 0x0002 )
MOUSEINPUT MouseData
const ( MOUSEEVENTF_ABSOLUTE = 0x8000 MOUSEEVENTF_HWHEEL = 0x1000 MOUSEEVENTF_MOVE = 0x0001 MOUSEEVENTF_MOVE_NOCOALESCE = 0x2000 MOUSEEVENTF_LEFTDOWN = 0x0002 MOUSEEVENTF_LEFTUP = 0x0004 MOUSEEVENTF_RIGHTDOWN = 0x0008 MOUSEEVENTF_RIGHTUP = 0x0010 MOUSEEVENTF_MIDDLEDOWN = 0x0020 MOUSEEVENTF_MIDDLEUP = 0x0040 MOUSEEVENTF_VIRTUALDESK = 0x4000 MOUSEEVENTF_WHEEL = 0x0800 MOUSEEVENTF_XDOWN = 0x0080 MOUSEEVENTF_XUP = 0x0100 )
MOUSEINPUT DwFlags
const ( KEYEVENTF_EXTENDEDKEY = 0x0001 KEYEVENTF_KEYUP = 0x0002 KEYEVENTF_SCANCODE = 0x0008 KEYEVENTF_UNICODE = 0x0004 )
KEYBDINPUT DwFlags
const ( GW_CHILD = 5 GW_ENABLEDPOPUP = 6 GW_HWNDFIRST = 0 GW_HWNDLAST = 1 GW_HWNDNEXT = 2 GW_HWNDPREV = 3 GW_OWNER = 4 )
GetWindow uCmd constants
const ( CF_BITMAP = 2 CF_DIB = 8 CF_DIBV5 = 17 CF_DIF = 5 CF_DSPBITMAP = 0x0082 CF_DSPENHMETAFILE = 0x008E CF_DSPMETAFILEPICT = 0x0083 CF_DSPTEXT = 0x0081 CF_ENHMETAFILE = 14 CF_GDIOBJFIRST = 0x0300 CF_GDIOBJLAST = 0x03FF CF_HDROP = 15 CF_LOCALE = 16 CF_METAFILEPICT = 3 CF_OEMTEXT = 7 CF_OWNERDISPLAY = 0x0080 CF_PALETTE = 9 CF_PENDATA = 10 CF_PRIVATEFIRST = 0x0200 CF_PRIVATELAST = 0x02FF CF_RIFF = 11 CF_SYLK = 4 CF_TEXT = 1 CF_TIFF = 6 CF_UNICODETEXT = 13 CF_WAVE = 12 )
Standard clipboard formats
const ( SB_HORZ = 0 SB_VERT = 1 SB_CTL = 2 SB_BOTH = 3 )
ScrollBar constants
const ( SB_LINEUP = 0 SB_LINELEFT = 0 SB_LINEDOWN = 1 SB_LINERIGHT = 1 SB_PAGEUP = 2 SB_PAGELEFT = 2 SB_PAGEDOWN = 3 SB_PAGERIGHT = 3 SB_THUMBPOSITION = 4 SB_THUMBTRACK = 5 SB_TOP = 6 SB_LEFT = 6 SB_BOTTOM = 7 SB_RIGHT = 7 SB_ENDSCROLL = 8 )
ScrollBar commands
const ( SIF_RANGE = 1 SIF_PAGE = 2 SIF_POS = 4 SIF_DISABLENOSCROLL = 8 SIF_TRACKPOS = 16 SIF_ALL = SIF_RANGE + SIF_PAGE + SIF_POS + SIF_TRACKPOS )
[Get|Set]ScrollInfo mask constants
const ( DI_COMPAT = 0x0004 DI_DEFAULTSIZE = 0x0008 DI_IMAGE = 0x0002 DI_MASK = 0x0001 DI_NOMIRROR = 0x0010 DI_NORMAL = DI_IMAGE | DI_MASK )
DrawIconEx flags
const ( HTBORDER = 18 HTBOTTOM = 15 HTBOTTOMLEFT = 16 HTBOTTOMRIGHT = 17 HTCAPTION = 2 HTCLIENT = 1 HTCLOSE = 20 HTERROR = -2 HTGROWBOX = 4 HTHELP = 21 HTHSCROLL = 6 HTLEFT = 10 HTMENU = 5 HTMAXBUTTON = 9 HTMINBUTTON = 8 HTNOWHERE = 0 HTREDUCE = 8 HTRIGHT = 11 HTSIZE = 4 HTSYSMENU = 3 HTTOP = 12 HTTOPLEFT = 13 HTTOPRIGHT = 14 HTTRANSPARENT = -1 HTVSCROLL = 7 HTZOOM = 9 )
WM_NCHITTEST constants
const ( AW_ACTIVATE = 0x00020000 AW_BLEND = 0x00080000 AW_CENTER = 0x00000010 AW_HIDE = 0x00010000 AW_HOR_POSITIVE = 0x00000001 AW_HOR_NEGATIVE = 0x00000002 AW_SLIDE = 0x00040000 AW_VER_POSITIVE = 0x00000004 AW_VER_NEGATIVE = 0x00000008 )
AnimateWindow flags
const ( ENDSESSION_CLOSEAPP = 0x00000001 ENDSESSION_CRITICAL = 0x40000000 ENDSESSION_LOGOFF = 0x80000000 )
Session ending constants
const ( MSGFLT_RESET = 0 MSGFLT_ALLOW = 1 MSGFLT_DISALLOW = 2 MSGFLTINFO_NONE = 0 MSGFLTINFO_ALREADYALLOWED_FORWND = 1 MSGFLTINFO_ALREADYDISALLOWED_FORWND = 2 MSGFLTINFO_ALLOWED_HIGHER = 3 )
ChangeWindowMessageFilterEx constants
const ( TME_CANCEL = 0x80000000 TME_HOVER = 0x00000001 TME_LEAVE = 0x00000002 TME_NONCLIENT = 0x00000010 TME_QUERY = 0x40000000 )
TRACKMOUSEEVENT flags
const ( HCF_HIGHCONTRASTON = 0x00000001 HCF_AVAILABLE = 0x00000002 HCF_HOTKEYACTIVE = 0x00000004 HCF_CONFIRMHOTKEY = 0x00000008 HCF_HOTKEYSOUND = 0x00000010 HCF_INDICATOR = 0x00000020 HCF_HOTKEYAVAILABLE = 0x00000040 )
HIGHCONTRAST flags
const ( WB_LEFT = 0 WB_RIGHT = 1 WB_ISDELIMITER = 2 )
EDITWORDBREAKPROC codes
const ( // RedrawWindow() flags RDW_INVALIDATE = 0x0001 RDW_INTERNALPAINT = 0x0002 RDW_ERASE = 0x0004 RDW_VALIDATE = 0x0008 RDW_NOINTERNALPAINT = 0x0010 RDW_NOERASE = 0x0020 RDW_NOCHILDREN = 0x0040 RDW_ALLCHILDREN = 0x0080 RDW_UPDATENOW = 0x0100 RDW_ERASENOW = 0x0200 RDW_FRAME = 0x0400 RDW_NOFRAME = 0x0800 )
const ( S_OK = 0x00000000 S_FALSE = 0x00000001 E_UNEXPECTED = 0x8000FFFF E_NOTIMPL = 0x80004001 E_OUTOFMEMORY = 0x8007000E E_INVALIDARG = 0x80070057 E_NOINTERFACE = 0x80004002 E_POINTER = 0x80004003 E_HANDLE = 0x80070006 E_ABORT = 0x80004004 E_FAIL = 0x80004005 E_ACCESSDENIED = 0x80070005 E_PENDING = 0x8000000A )
const ( FALSE = 0 TRUE = 1 )
const (
AC_SRC_ALPHA = 0x1
)
AlphaBlend operations
const CBM_INIT = 4
const CW_USEDEFAULT = ^0x7fffffff
const LF_FACESIZE = 32
const MAX_PATH = 260
const (
MONITORINFOF_PRIMARY = 0x1
)
MONITORINFO flags
Variables ¶
This section is empty.
Functions ¶
func ActivateActCtx ¶
func AddFontResourceEx ¶
func AdjustWindowRectEx ¶
func AlphaBlend ¶
func AnimateWindow ¶
func AttachThreadInput ¶
func BringWindowToTop ¶
func CallWindowProc ¶
func ChangeWindowMessageFilterEx ¶
func ChangeWindowMessageFilterEx(hwnd HWND, msg uint32, action uint32, changeFilterStruct *CHANGEFILTERSTRUCT) bool
func CheckMenuRadioItem ¶
func ChoosePixelFormat ¶
func ChoosePixelFormat(hdc HDC, ppfd *PIXELFORMATDESCRIPTOR) int32
func ClientToScreen ¶
func CloseClipboard ¶
func CloseClipboard() bool
func CloseHandle ¶
func CombineRgn ¶
func DeleteEnhMetaFile ¶
func DeleteEnhMetaFile(hemf HENHMETAFILE) bool
func DeleteObject ¶
func DestroyIcon ¶
func DestroyMenu ¶
func DestroyWindow ¶
func DialogBoxParam ¶
func DispatchMessage ¶
func DrawFocusRect ¶
func DrawIconEx ¶
func DrawMenuBar ¶
func DrawTextEx ¶
func EmptyClipboard ¶
func EmptyClipboard() bool
func EnableWindow ¶
func EndDeferWindowPos ¶
func EndPaint ¶
func EndPaint(hwnd HWND, lpPaint *PAINTSTRUCT) bool
func EnumChildWindows ¶
func ExcludeClipRect ¶
func FileTimeToSystemTime ¶
func FileTimeToSystemTime(lpFileTime *FILETIME, lpSystemTime *SYSTEMTIME) bool
func GET_X_LPARAM ¶
func GET_Y_LPARAM ¶
func GetCaretPos ¶
func GetClientRect ¶
func GetConsoleTitle ¶
func GetCurrentThreadId ¶
func GetCurrentThreadId() uint32
func GetCursorPos ¶
func GetDeviceCaps ¶
func GetDpiForWindow ¶
func GetEnhMetaFileHeader ¶
func GetEnhMetaFileHeader(hemf HENHMETAFILE, cbBuffer uint32, lpemh *ENHMETAHEADER) uint32
func GetIconInfo ¶
func GetKeyState ¶
func GetLastError ¶
func GetLastError() uint32
func GetLocaleInfo ¶
func GetLogicalDriveStrings ¶
func GetMenuCheckMarkDimensions ¶
func GetMenuCheckMarkDimensions() int32
func GetMenuInfo ¶
func GetMenuItemCount ¶
func GetMenuItemID ¶
func GetMenuItemInfo ¶
func GetMenuItemInfo(hmenu HMENU, item uint32, fByPosition BOOL, lpmii *MENUITEMINFO) bool
func GetMonitorInfo ¶
func GetMonitorInfo(hMonitor HMONITOR, lpmi *MONITORINFO) bool
func GetNumberFormat ¶
func GetProfileString ¶
func GetRawInputData ¶
func GetScrollInfo ¶
func GetScrollInfo(hwnd HWND, fnBar int32, lpsi *SCROLLINFO) bool
func GetSysColor ¶
func GetSystemMetrics ¶
func GetSystemMetricsForDpi ¶
func GetTextExtentExPoint ¶
func GetTextExtentPoint32 ¶
func GetTextMetrics ¶
func GetTextMetrics(hdc HDC, lptm *TEXTMETRIC) bool
func GetVersion ¶
func GetVersion() uint32
func GetViewportOrgEx ¶
func GetWindowLong ¶
func GetWindowLongPtr ¶
func GetWindowPlacement ¶
func GetWindowPlacement(hWnd HWND, lpwndpl *WINDOWPLACEMENT) bool
func GetWindowRect ¶
func GlobalLock ¶
func GlobalUnlock ¶
func GradientFill ¶
func InsertMenuItem ¶
func InsertMenuItem(hMenu HMENU, uItem uint32, fByPosition bool, lpmii *MENUITEMINFO) bool
func IntersectClipRect ¶
func IsDialogMessage ¶
func IsWindowEnabled ¶
func IsWindowVisible ¶
func LockResource ¶
func MAKEINTRESOURCE ¶
func MessageBeep ¶
Plays a waveform sound. uType is the sound to be played. The sounds are set by the user through the Sound control panel application. The following values can be used as a sound:
MB_ICONASTERISK (see MB_ICONINFORMATION) MB_ICONEXCLAMATION (see MB_ICONWARNING) MB_ICONERROR (The sound specified as the Windows Critical Stop sound) MB_ICONHAND (See MB_ICONERROR) MB_ICONINFORMATION (The sounds specified as the Windows Asterisk sound) MB_ICONQUESTION (The sound specified as the Windows Question sound) MB_ICONSTOP (See MB_ICONERROR) MB_ICONWARNING (The sounds specified as the Windows Exclamation sound) MB_OK (The sound specified as the Windows Default Beep sound)
The function will return true if the function succeeds, false if otherwise.
func MoveMemory ¶
func NotifyWinEvent ¶
func OpenClipboard ¶
func PeekMessage ¶
func PlayEnhMetaFile ¶
func PlayEnhMetaFile(hdc HDC, hemf HENHMETAFILE, lpRect *RECT) bool
func PostQuitMessage ¶
func PostQuitMessage(exitCode int32)
func QueryPerformanceCounter ¶
func Rectangle_ ¶
func RedrawWindow ¶
func RegisterRawInputDevices ¶
func RegisterRawInputDevices(pRawInputDevices *RAWINPUTDEVICE, uiNumDevices uint32, cbSize uint32) bool
func RegisterWindowMessage ¶
func ReleaseCapture ¶
func ReleaseCapture() bool
func RemoveFontMemResourceEx ¶
func RemoveFontResourceEx ¶
func RemoveMenu ¶
func ScreenToClient ¶
func SendDlgItemMessage ¶
func SendInput ¶
pInputs expects a unsafe.Pointer to a slice of MOUSE_INPUT or KEYBD_INPUT or HARDWARE_INPUT structs.
func SetCursorPos ¶
func SetForegroundWindow ¶
func SetLastError ¶
func SetLastError(dwErrorCode uint32)
func SetMenuInfo ¶
func SetMenuItemBitmaps ¶
func SetMenuItemInfo ¶
func SetMenuItemInfo(hMenu HMENU, uItem uint32, fByPosition bool, lpmii *MENUITEMINFO) bool
func SetPixelFormat ¶
func SetPixelFormat(hdc HDC, iPixelFormat int32, ppfd *PIXELFORMATDESCRIPTOR) bool
func SetScrollInfo ¶
func SetScrollInfo(hwnd HWND, fnBar int32, lpsi *SCROLLINFO, fRedraw bool) int32
func SetStretchBltMode ¶
func SetWindowLong ¶
func SetWindowPlacement ¶
func SetWindowPlacement(hWnd HWND, lpwndpl *WINDOWPLACEMENT) bool
func SetWindowPos ¶
func ShowWindow ¶
func SizeofResource ¶
func StretchBlt ¶
func SwapBuffers ¶
func SystemParametersInfo ¶
func SystemTimeToFileTime ¶
func SystemTimeToFileTime(lpSystemTime *SYSTEMTIME, lpFileTime *FILETIME) bool
func TrackMouseEvent ¶
func TrackMouseEvent(lpEventTrack *TRACKMOUSEEVENT) bool
func TrackPopupMenu ¶
func TranslateMessage ¶
func TransparentBlt ¶
func UTF16PtrToString ¶
func UnhookWinEvent ¶
func UnhookWinEvent(hWinHookEvent HWINEVENTHOOK) bool
func UnregisterClass ¶
func UpdateWindow ¶
Types ¶
type ATOM ¶
type ATOM uint16
func RegisterClassEx ¶
func RegisterClassEx(windowClass *WNDCLASSEX) ATOM
type BITMAPINFO ¶
type BITMAPINFO struct { BmiHeader BITMAPINFOHEADER BmiColors *RGBQUAD }
type BITMAPINFOHEADER ¶
type BITMAPV4HEADER ¶
type BITMAPV4HEADER struct { BITMAPINFOHEADER BV4RedMask uint32 BV4GreenMask uint32 BV4BlueMask uint32 BV4AlphaMask uint32 BV4CSType uint32 BV4Endpoints CIEXYZTRIPLE BV4GammaRed uint32 BV4GammaGreen uint32 BV4GammaBlue uint32 }
type BITMAPV5HEADER ¶
type BITMAPV5HEADER struct { BITMAPV4HEADER BV5Intent uint32 BV5ProfileData uint32 BV5ProfileSize uint32 BV5Reserved uint32 }
type BLENDFUNCTION ¶
type CHANGEFILTERSTRUCT ¶
type CHANGEFILTERSTRUCT struct {
// contains filtered or unexported fields
}
type CIEXYZTRIPLE ¶
type CIEXYZTRIPLE struct {
CiexyzRed, CiexyzGreen, CiexyzBlue CIEXYZ
}
type CLIPFORMAT ¶
type CLIPFORMAT uint16
type COLORREF ¶
type COLORREF uint32
func GetBkColor ¶
func GetTextColor ¶
func SetBkColor ¶
func SetTextColor ¶
type CREATESTRUCT ¶
type DEVMODE ¶
type DEVMODE struct { DmDeviceName [CCHDEVICENAME]uint16 DmSpecVersion uint16 DmDriverVersion uint16 DmSize uint16 DmDriverExtra uint16 DmFields uint32 DmOrientation int16 DmPaperSize int16 DmPaperLength int16 DmPaperWidth int16 DmScale int16 DmCopies int16 DmDefaultSource int16 DmPrintQuality int16 DmColor int16 DmDuplex int16 DmYResolution int16 DmTTOption int16 DmCollate int16 DmFormName [CCHFORMNAME]uint16 DmLogPixels uint16 DmBitsPerPel uint32 DmPelsWidth uint32 DmPelsHeight uint32 DmDisplayFlags uint32 DmDisplayFrequency uint32 DmICMMethod uint32 DmICMIntent uint32 DmMediaType uint32 DmDitherType uint32 DmReserved1 uint32 DmReserved2 uint32 DmPanningWidth uint32 DmPanningHeight uint32 }
type DIBSECTION ¶
type DIBSECTION struct { DsBm BITMAP DsBmih BITMAPINFOHEADER DsBitfields [3]uint32 DshSection HANDLE DsOffset uint32 }
type DRAWITEMSTRUCT ¶
type DRAWTEXTPARAMS ¶
type ENHMETAHEADER ¶
type ENHMETAHEADER struct { IType uint32 NSize uint32 RclBounds RECT RclFrame RECT DSignature uint32 NVersion uint32 NBytes uint32 NRecords uint32 NHandles uint16 SReserved uint16 NDescription uint32 OffDescription uint32 NPalEntries uint32 SzlDevice SIZE SzlMillimeters SIZE CbPixelFormat uint32 OffPixelFormat uint32 BOpenGL uint32 SzlMicrometers SIZE }
type GRADIENT_RECT ¶
type GRADIENT_TRIANGLE ¶
type HANDLE ¶
type HANDLE uintptr
func AddFontMemResourceEx ¶
func CreateActCtx ¶
func GetClipboardData ¶
func SetClipboardData ¶
type HARDWAREINPUT ¶
type HARDWARE_INPUT ¶
type HARDWARE_INPUT struct { Type uint32 Hi HARDWAREINPUT }
type HBITMAP ¶
type HBITMAP HGDIOBJ
func CreateBitmap ¶
func CreateCompatibleBitmap ¶
func CreateDIBSection ¶
type HBRUSH ¶
type HBRUSH HGDIOBJ
func CreateBrushIndirect ¶
func CreatePatternBrush ¶
func GetSysColorBrush ¶
type HDC ¶
type HDC HANDLE
func BeginPaint ¶
func BeginPaint(hwnd HWND, lpPaint *PAINTSTRUCT) HDC
func CreateCompatibleDC ¶
func CreateEnhMetaFile ¶
type HENHMETAFILE ¶
type HENHMETAFILE HANDLE
func CloseEnhMetaFile ¶
func CloseEnhMetaFile(hdc HDC) HENHMETAFILE
func CopyEnhMetaFile ¶
func CopyEnhMetaFile(hemfSrc HENHMETAFILE, lpszFile *uint16) HENHMETAFILE
func GetEnhMetaFile ¶
func GetEnhMetaFile(lpszMetaFile *uint16) HENHMETAFILE
type HIGHCONTRAST ¶
type HMENU ¶
type HMENU HANDLE
func CreateMenu ¶
func CreateMenu() HMENU
func CreatePopupMenu ¶
func CreatePopupMenu() HMENU
func GetSubMenu ¶
func GetSystemMenu ¶
type HWINEVENTHOOK ¶
type HWINEVENTHOOK HANDLE
func SetWinEventHook ¶
func SetWinEventHook(eventMin uint32, eventMax uint32, hmodWinEventProc HMODULE, callbackFunction WINEVENTPROC, idProcess uint32, idThread uint32, dwFlags uint32) (HWINEVENTHOOK, error)
type HWND ¶
type HWND HANDLE
func CreateDialogParam ¶
func CreateWindowEx ¶
func FindWindow ¶
func GetActiveWindow ¶
func GetActiveWindow() HWND
func GetAncestor ¶
func GetConsoleWindow ¶
func GetConsoleWindow() HWND
func GetDesktopWindow ¶
func GetDesktopWindow() HWND
func GetDlgItem ¶
func GetForegroundWindow ¶
func GetForegroundWindow() HWND
func SetActiveWindow ¶
func SetCapture ¶
func WindowFromDC ¶
func WindowFromPoint ¶
type KEYBDINPUT ¶
type KEYBD_INPUT ¶
type KEYBD_INPUT struct { Type uint32 Ki KEYBDINPUT }
type LCID ¶
type LCID uint32
const ( LOCALE_CUSTOM_DEFAULT LCID = 0x0c00 LOCALE_CUSTOM_UI_DEFAULT LCID = 0x1400 LOCALE_CUSTOM_UNSPECIFIED LCID = 0x1000 LOCALE_INVARIANT LCID = 0x007f LOCALE_USER_DEFAULT LCID = 0x0400 LOCALE_SYSTEM_DEFAULT LCID = 0x0800 )
Predefined locale ids
func GetThreadLocale ¶
func GetThreadLocale() LCID
type MEASUREITEMSTRUCT ¶
type MENUITEMINFO ¶
type MINMAXINFO ¶
type MONITORINFO ¶
type MOUSEINPUT ¶
type MOUSE_INPUT ¶
type MOUSE_INPUT struct { Type uint32 Mi MOUSEINPUT }
type NMBCDROPDOWN ¶
type NONCLIENTMETRICS ¶
type NONCLIENTMETRICS struct { CbSize uint32 IBorderWidth int32 IScrollWidth int32 IScrollHeight int32 ICaptionWidth int32 ICaptionHeight int32 LfCaptionFont LOGFONT ISmCaptionWidth int32 ISmCaptionHeight int32 LfSmCaptionFont LOGFONT IMenuWidth int32 IMenuHeight int32 LfMenuFont LOGFONT LfStatusFont LOGFONT LfMessageFont LOGFONT }
type PAINTSTRUCT ¶
type PIXELFORMATDESCRIPTOR ¶
type PIXELFORMATDESCRIPTOR struct { NSize uint16 NVersion uint16 DwFlags uint32 IPixelType byte CColorBits byte CRedBits byte CRedShift byte CGreenBits byte CGreenShift byte CBlueBits byte CBlueShift byte CAlphaBits byte CAlphaShift byte CAccumBits byte CAccumRedBits byte CAccumGreenBits byte CAccumBlueBits byte CAccumAlphaBits byte CDepthBits byte CStencilBits byte CAuxBuffers byte ILayerType byte BReserved byte DwLayerMask uint32 DwVisibleMask uint32 DwDamageMask uint32 }
type RAWINPUTDEVICE ¶
type RAWINPUTHEADER ¶
type RAWINPUTHID ¶
type RAWINPUTHID struct { Header RAWINPUTHEADER Data RAWHID }
type RAWINPUTKEYBOARD ¶
type RAWINPUTKEYBOARD struct { Header RAWINPUTHEADER Data RAWKEYBOARD }
type RAWINPUTMOUSE ¶
type RAWINPUTMOUSE struct { Header RAWINPUTHEADER Data RAWMOUSE }
type RAWKEYBOARD ¶
type SCROLLINFO ¶
type SYSTEMTIME ¶
type TEXTMETRIC ¶
type TEXTMETRIC struct { TmHeight int32 TmAscent int32 TmDescent int32 TmInternalLeading int32 TmExternalLeading int32 TmAveCharWidth int32 TmMaxCharWidth int32 TmWeight int32 TmOverhang int32 TmDigitizedAspectX int32 TmDigitizedAspectY int32 TmFirstChar uint16 TmLastChar uint16 TmDefaultChar uint16 TmBreakChar uint16 TmItalic byte TmUnderlined byte TmStruckOut byte TmPitchAndFamily byte TmCharSet byte }