user32

package
v0.0.0-...-ff36d3a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 19, 2023 License: MIT Imports: 3 Imported by: 2

Documentation

Rendered for windows/amd64

Index

Constants

View Source
const (
	HWND_BOTTOM    = winapi.HWND(1)
	HWND_NOTOPMOST = -2
	HWND_TOP       = winapi.HWND(0)
	HWND_TOPMOST   = -1
)
View Source
const (
	BS_DEFPUSHBUTTON = 1
	COLOR_WINDOW     = 5
	COLOR_BTNFACE    = 15
	CW_USEDEFAULT    = 0x80000000 - 0x100000000 //// Default window position
)
View Source
const (
	WS_OVERLAPPED   = 0
	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      = WS_BORDER | WS_DLGFRAME
	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        = 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
)

Window Styles

View Source
const (
	WM_NULL              = winapi.UINT(0x0000)
	WM_CREATE            = winapi.UINT(0x0001)
	WM_DESTROY           = winapi.UINT(0x0002)
	WM_NCDESTROY         = winapi.UINT(0x0002)
	WM_MOVE              = winapi.UINT(0x0003)
	WM_SIZE              = winapi.UINT(0x0005)
	WM_ACTIVATE          = winapi.UINT(0x0006)
	WM_SETFOCUS          = winapi.UINT(0x0007)
	WM_KILLFOCUS         = winapi.UINT(0x0008)
	WM_ENABLE            = winapi.UINT(0x000A)
	WM_SETREDRAW         = winapi.UINT(0x000B)
	WM_SETTEXT           = winapi.UINT(0x000C)
	WM_GETTEXT           = winapi.UINT(0x000D)
	WM_GETTEXTLENGTH     = winapi.UINT(0x000E)
	WM_PAINT             = winapi.UINT(0x000F)
	WM_CLOSE             = winapi.UINT(0x0010)
	WM_QUIT              = winapi.UINT(0x0012)
	WM_ERASEBKGND        = winapi.UINT(0x0014)
	WM_SHOWWINDOW        = winapi.UINT(0x0018)
	WM_CTLCOLOR          = winapi.UINT(0x0019)
	WM_NEXTDLGCTL        = winapi.UINT(0x0028)
	WM_DRAWITEM          = winapi.UINT(0x002B)
	WM_MEASUREITEM       = winapi.UINT(0x002C)
	WM_DELETEITEM        = winapi.UINT(0x002D)
	WM_VKEYTOITEM        = winapi.UINT(0x002E)
	WM_CHARTOITEM        = winapi.UINT(0x002F)
	WM_SETFONT           = winapi.UINT(0x0030)
	WM_GETFONT           = winapi.UINT(0x0031)
	WM_COMPAREITEM       = winapi.UINT(0x0039)
	WM_WINDOWPOSCHANGED  = winapi.UINT(0x0047)
	WM_NOTIFY            = winapi.UINT(0x004E)
	WM_NCCALCSIZE        = winapi.UINT(0x0083)
	WM_NCHITTEST         = winapi.UINT(0x0084)
	WM_NCPAINT           = winapi.UINT(0x0085)
	WM_GETDLGCODE        = winapi.UINT(0x0087)
	WM_NCMOUSEMOVE       = winapi.UINT(0x00A0)
	WM_NCLBUTTONDOWN     = winapi.UINT(0x00A1)
	WM_NCLBUTTONUP       = winapi.UINT(0x00A2)
	WM_NCLBUTTONDBLCLK   = winapi.UINT(0x00A3)
	WM_NCRBUTTONDOWN     = winapi.UINT(0x00A4)
	WM_NCRBUTTONUP       = winapi.UINT(0x00A5)
	WM_NCRBUTTONDBLCLK   = winapi.UINT(0x00A6)
	WM_KEYFIRST          = winapi.UINT(0x0100)
	WM_KEYDOWN           = winapi.UINT(0x0100)
	WM_KEYUP             = winapi.UINT(0x0101)
	WM_CHAR              = winapi.UINT(0x0102)
	WM_DEADCHAR          = winapi.UINT(0x0103)
	WM_SYSKEYDOWN        = winapi.UINT(0x0104)
	WM_SYSKEYUP          = winapi.UINT(0x0105)
	WM_SYSCHAR           = winapi.UINT(0x0106)
	WM_SYSDEADCHAR       = winapi.UINT(0x0107)
	WM_KEYLAST           = winapi.UINT(0x0108)
	WM_INITDIALOG        = winapi.UINT(0x0110)
	WM_COMMAND           = winapi.UINT(0x0111)
	WM_SYSCOMMAND        = winapi.UINT(0x0112)
	WM_TIMER             = winapi.UINT(0x0113)
	WM_HSCROLL           = winapi.UINT(0x0114)
	WM_VSCROLL           = winapi.UINT(0x0115)
	WM_ENTERIDLE         = winapi.UINT(0x0121)
	WM_CTLCOLORMSGBOX    = winapi.UINT(0x0132)
	WM_CTLCOLOREDIT      = winapi.UINT(0x0133)
	WM_CTLCOLORLISTBOX   = winapi.UINT(0x0134)
	WM_CTLCOLORBTN       = winapi.UINT(0x0135)
	WM_CTLCOLORDLG       = winapi.UINT(0x0136)
	WM_CTLCOLORSCROLLBAR = winapi.UINT(0x0137)
	WM_CTLCOLORSTATIC    = winapi.UINT(0x0138)
	WM_MOUSEFIRST        = winapi.UINT(0x0200)
	WM_MOUSEMOVE         = winapi.UINT(0x0200)
	WM_LBUTTONDOWN       = winapi.UINT(0x0201)
	WM_LBUTTONUP         = winapi.UINT(0x0202)
	WM_LBUTTONDBLCLK     = winapi.UINT(0x0203)
	WM_RBUTTONDOWN       = winapi.UINT(0x0204)
	WM_RBUTTONUP         = winapi.UINT(0x0205)
	WM_RBUTTONDBLCLK     = winapi.UINT(0x0206)
	WM_MBUTTONDOWN       = winapi.UINT(0x0207)
	WM_MBUTTONUP         = winapi.UINT(0x0208)
	WM_MBUTTONDBLCLK     = winapi.UINT(0x0209)
	WM_MOUSEWHEEL        = winapi.UINT(0x020A)
	WM_MOUSELAST         = winapi.UINT(0x020A)
	WM_HOTKEY            = winapi.UINT(0x0312)
	WM_CARET_CREATE      = winapi.UINT(0x03E0)
	WM_CARET_DESTROY     = winapi.UINT(0x03E1)
	WM_CARET_BLINK       = winapi.UINT(0x03E2)
	WM_FDINPUT           = winapi.UINT(0x03F0)
	WM_FDOUTPUT          = winapi.UINT(0x03F1)
	WM_FDEXCEPT          = winapi.UINT(0x03F2)
	WM_USER              = winapi.UINT(0x0400)
)
View Source
const (
	WMSZ_BOTTOM      = 6 //	Bottom edge
	WMSZ_BOTTOMLEFT  = 7 //	Bottom-left corner
	WMSZ_BOTTOMRIGHT = 8 //	Bottom-right corner
	WMSZ_LEFT        = 1 //	Left edge
	WMSZ_RIGHT       = 2 //	Right edge
	WMSZ_TOP         = 3 //	Top edge
	WMSZ_TOPLEFT     = 4 //	Top-left corner
	WMSZ_TOPRIGHT    = 5 //	Top-right corner
)
View Source
const (
	SC_CLOSE        = 0xF060     //	Closes the window.
	SC_CONTEXTHELP  = 0xF180     //	Changes the cursor to a question mark with a pointer. If the user then clicks a control in the dialog box, the control receives a WM_HELP message.
	SC_DEFAULT      = 0xF160     //	Selects the default item; the user double-clicked the window menu.
	SC_HOTKEY       = 0xF150     //	Activates the window associated with the application-specified hot key. The lParam parameter identifies the window to activate.
	SC_HSCROLL      = 0xF080     //	Scrolls horizontally.
	SCF_ISSECURE    = 0x00000001 //	Indicates whether the screen saver is secure.
	SC_KEYMENU      = 0xF100     //	Retrieves the window menu as a result of a keystroke. For more information, see the Remarks section.
	SC_MAXIMIZE     = 0xF030     //	Maximizes the window.
	SC_MINIMIZE     = 0xF020     //	Minimizes the window.
	SC_MONITORPOWER = 0xF170
	SC_MOUSEMENU    = 0xF090 //	Retrieves the window menu as a result of a mouse click.
	SC_MOVE         = 0xF010 //	Moves the window.
	SC_NEXTWINDOW   = 0xF040 //	Moves to the next window.
	SC_PREVWINDOW   = 0xF050 //	Moves to the previous window.
	SC_RESTORE      = 0xF120 //	Restores the window to its normal position and size.
	SC_SCREENSAVE   = 0xF140 //	Executes the screen saver application specified in the [boot] section of the System.ini file.
	SC_SIZE         = 0xF000 //	Sizes the window.
	SC_TASKLIST     = 0xF130 //	Activates the Start menu.
	SC_VSCROLL      = 0xF070 //	Scrolls vertically.
)
View Source
const (
	SW_FORCEMINIMIZE   = 11 //Minimizes a window, even if the thread that owns the window is not responding. This flag should only be used when minimizing windows from a different thread.
	SW_HIDE            = 0  //Hides the window and activates another window.
	SW_MAXIMIZE        = 3  //Maximizes the specified window.
	SW_MINIMIZE        = 6  //Minimizes the specified window and activates the next top-level window in the Z order.
	SW_RESTORE         = 9  //Activates and displays the window. If the window is minimized or maximized, the system restores it to its original size and position. An application should specify this flag when restoring a minimized window.
	SW_SHOW            = 5  //Activates the window and displays it in its current size and position.
	SW_SHOWDEFAULT     = 10 //Sets the show state based on the SW_ value specified in the STARTUPINFO structure passed to the CreateProcess function by the program that started the application.
	SW_SHOWMAXIMIZED   = 3  //Activates the window and displays it as a maximized window.
	SW_SHOWMINIMIZED   = 2  //Activates the window and displays it as a minimized window.
	SW_SHOWMINNOACTIVE = 7  //Displays the window as a minimized window. This value is similar to SW_SHOWMINIMIZED, except the window is not activated.
	SW_SHOWNA          = 8  //Displays the window in its current size and position. This value is similar to SW_SHOW, except that the window is not activated.
	SW_SHOWNOACTIVATE  = 4  //Displays a window in its most recent size and position. This value is similar to SW_SHOWNORMAL, except that the window is not activated.
	SW_SHOWNORMAL      = 1  //Activates and displays a window. If the window is minimized or maximized, the system restores it to its original size and position. An application should specify this flag when displaying the window for the first time.
)
View Source
const (
	PM_NOREMOVE = 0x0000
	PM_REMOVE   = 0x0001
	PM_NOYIELD  = 0x0002
)
View Source
const (
	GWL_EXSTYLE    = -20 //Sets a new extended window style.
	GWLP_HINSTANCE = -6  //Sets a new application instance handle.
	GWLP_ID        = -12 //Sets a new identifier of the child window. The window cannot be a top-level window.
	GWL_STYLE      = -16 //Sets a new window style.
	GWLP_USERDATA  = -21 //Sets the user data associated with the window. This data is intended for use by the application that created the window. Its value is initially zero.
	GWLP_WNDPROC   = -4  //Sets a new address for the window procedure.
)
View Source
const (
	MAPVK_VK_TO_CHAR   = 2
	MAPVK_VK_TO_VSC    = 0
	MAPVK_VK_TO_VSC_EX = 4
	MAPVK_VSC_TO_VK    = 1
	MAPVK_VSC_TO_VK_EX = 3
)
View Source
const (
	KLF_ACTIVATE      = 0x00000001
	KLF_NOTELLSHELL   = 0x00000080
	KLF_REORDER       = 0x00000008
	KLF_REPLACELANG   = 0x00000010
	KLF_SUBSTITUTE_OK = 0x00000002
	KLF_SETFORPROCESS = 0x00000100
)
View Source
const (
	VK_LBUTTON    = 0x01
	VK_RBUTTON    = 0x02
	VK_CANCEL     = 0x03
	VK_MBUTTON    = 0x04
	VK_XBUTTON1   = 0x05
	VK_XBUTTON2   = 0x06
	VK_BACK       = 0x08
	VK_TAB        = 0x09
	VK_CLEAR      = 0x0C
	VK_RETURN     = 0x0D
	VK_SHIFT      = 0x10
	VK_CONTROL    = 0x11
	VK_MENU       = 0x12
	VK_PAUSE      = 0x13
	VK_CAPITAL    = 0x14
	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      = 0x20
	VK_PRIOR      = 0x21
	VK_NEXT       = 0x22
	VK_END        = 0x23
	VK_HOME       = 0x24
	VK_LEFT       = 0x25
	VK_UP         = 0x26
	VK_RIGHT      = 0x27
	VK_DOWN       = 0x28
	VK_SELECT     = 0x29
	VK_PRINT      = 0x2A
	VK_EXECUTE    = 0x2B
	VK_SNAPSHOT   = 0x2C
	VK_INSERT     = 0x2D
	VK_DELETE     = 0x2E
	VK_HELP       = 0x2F

	VK_KEY_0 = 0x30
	VK_KEY_1 = 0x31
	VK_KEY_2 = 0x32
	VK_KEY_3 = 0x33
	VK_KEY_4 = 0x34
	VK_KEY_5 = 0x35
	VK_KEY_6 = 0x36
	VK_KEY_7 = 0x37
	VK_KEY_8 = 0x38
	VK_KEY_9 = 0x39
	VK_KEY_A = 0x41
	VK_KEY_B = 0x42
	VK_KEY_C = 0x43
	VK_KEY_D = 0x44
	VK_KEY_E = 0x45
	VK_KEY_F = 0x46
	VK_KEY_G = 0x47
	VK_KEY_H = 0x48
	VK_KEY_I = 0x49
	VK_KEY_J = 0x4A
	VK_KEY_K = 0x4B
	VK_KEY_L = 0x4C
	VK_KEY_M = 0x4D
	VK_KEY_N = 0x4E
	VK_KEY_O = 0x4F
	VK_KEY_P = 0x50
	VK_KEY_Q = 0x51
	VK_KEY_R = 0x52
	VK_KEY_S = 0x53
	VK_KEY_T = 0x54
	VK_KEY_U = 0x55
	VK_KEY_V = 0x56
	VK_KEY_W = 0x57
	VK_KEY_X = 0x58
	VK_KEY_Y = 0x59
	VK_KEY_Z = 0x5A

	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_OEM_NEC_EQUAL       = 0x92
	VK_OEM_FJ_JISHO        = 0x92
	VK_OEM_FJ_MASSHOU      = 0x93
	VK_OEM_FJ_TOUROKU      = 0x94
	VK_OEM_FJ_LOYA         = 0x95
	VK_OEM_FJ_ROYA         = 0x96
	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_AX              = 0xE1
	VK_OEM_102             = 0xE2
	VK_ICO_HELP            = 0xE3
	VK_ICO_00              = 0xE4
	VK_PROCESSKEY          = 0xE5
	VK_ICO_CLEAR           = 0xE6
	VK_OEM_RESET           = 0xE9
	VK_OEM_JUMP            = 0xEA
	VK_OEM_PA1             = 0xEB
	VK_OEM_PA2             = 0xEC
	VK_OEM_PA3             = 0xED
	VK_OEM_WSCTRL          = 0xEE
	VK_OEM_CUSEL           = 0xEF
	VK_OEM_ATTN            = 0xF0
	VK_OEM_FINISH          = 0xF1
	VK_OEM_COPY            = 0xF2
	VK_OEM_AUTO            = 0xF3
	VK_OEM_ENLW            = 0xF4
	VK_OEM_BACKTAB         = 0xF5
	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
)
View Source
const (
	SWP_ASYNCWINDOWPOS = 0x4000
	SWP_DEFERERASE     = 0x2000
	SWP_DRAWFRAME      = 0x0020
	SWP_FRAMECHANGED   = 0x0020
	SWP_HIDEWINDOW     = 0x0080
	SWP_NOACTIVATE     = 0x0010
	SWP_NOCOPYBITS     = 0x0100
	SWP_NOMOVE         = 0x0002
	SWP_NOOWNERZORDER  = 0x0200
	SWP_NOREDRAW       = 0x0008
	SWP_NOREPOSITION   = 0x0200
	SWP_NOSENDCHANGING = 0x0400
	SWP_NOSIZE         = 0x0001
	SWP_NOZORDER       = 0x0004
	SWP_SHOWWINDOW     = 0x0040
)

Variables

View Source
var (
	IDI_APPLICATION = MakeIntResource(32512) //Default application icon.
	IDI_ERROR       = MakeIntResource(32513) //Hand-shaped icon.
	IDI_HAND        = MakeIntResource(32513) //Hand-shaped icon. Same as IDI_ERROR.
	IDI_QUESTION    = MakeIntResource(32514) //Question mark icon.
	IDI_WARNING     = MakeIntResource(32515) //Exclamation point icon.
	IDI_EXCLAMATION = MakeIntResource(32515) //Exclamation point icon. Same as IDI_WARNING.
	IDI_ASTERISK    = MakeIntResource(32516) //Asterisk icon. Same as IDI_INFORMATION.
	IDI_INFORMATION = MakeIntResource(32516) //Asterisk icon.
	IDI_SHIELD      = MakeIntResource(32518) //Security Shield icon.
)
View Source
var (
	IDC_APPSTARTING = MakeIntResource(32650) //Standard arrow and small hourglass
	IDC_ARROW       = MakeIntResource(32512) //Standard arrow
	IDC_CROSS       = MakeIntResource(32515) //Crosshair
	IDC_HAND        = MakeIntResource(32649) //Hand
	IDC_HELP        = MakeIntResource(32651) //Arrow and question mark
	IDC_IBEAM       = MakeIntResource(32513) //I-beam
	IDC_ICON        = MakeIntResource(32641) //Obsolete for applications marked version 4.0 or later.
	IDC_NO          = MakeIntResource(32648) //Slashed circle
	IDC_SIZE        = MakeIntResource(32640) //Obsolete for applications marked version 4.0 or later. Use IDC_SIZEALL.
	IDC_SIZEALL     = MakeIntResource(32646) //Four-pointed arrow pointing north, south, east, and west
	IDC_SIZENESW    = MakeIntResource(32643) //Double-pointed arrow pointing northeast and southwest
	IDC_SIZENS      = MakeIntResource(32645) //Double-pointed arrow pointing north and south
	IDC_SIZENWSE    = MakeIntResource(32642) //Double-pointed arrow pointing northwest and southeast
	IDC_SIZEWE      = MakeIntResource(32644) //Double-pointed arrow pointing west and east
	IDC_UPARROW     = MakeIntResource(32516) //Vertical arrow
	IDC_WAIT        = MakeIntResource(32514) //Hourglass
)

Functions

func CreateWindowExW

func CreateWindowExW(
	exstyle uint32,
	className winapi.LPCWSTR,
	windowName winapi.LPCWSTR,
	style uint32,
	x int32,
	y int32,
	width int32,
	height int32,
	wndparent winapi.HWND,
	menu winapi.HMENU,
	instance winapi.HINSTANCE,
	param winapi.LPVOID) (winapi.HWND, error)

func DefWindowProcW

func DefWindowProcW(
	hwnd winapi.HWND,
	msg winapi.UINT,
	wparam winapi.WPARAM,
	lparam winapi.LPARAM) winapi.LRESULT

func DestroyWindow

func DestroyWindow(hwnd winapi.HWND) (succeed bool, err error)

func DispatchMessageW

func DispatchMessageW(msg *Msg) winapi.LRESULT

func GetDC

func GetDC(hwnd winapi.HWND) (winapi.HDC, error)

func GetKeyboardLayout

func GetKeyboardLayout(idThread winapi.DWORD) winapi.HKL

func GetMessageW

func GetMessageW(msg *Msg, hwnd winapi.HWND, MsgFilterMin uint32, MsgFilterMax uint32) (winapi.BOOL, error)

func GetWindowLongPtrW

func GetWindowLongPtrW(hWnd winapi.HWND, nIndex int) (winapi.LONG_PTR, error)

func GetWindowRect

func GetWindowRect(hwnd winapi.HWND, rect *Rect) (bool, error)

func LoadCursorW

func LoadCursorW(instance winapi.HINSTANCE, cursorName winapi.LPCWSTR) (winapi.HCURSOR, error)

func LoadIconW

func LoadIconW(instance winapi.HINSTANCE, iconName winapi.LPCWSTR) (winapi.HICON, error)

func MakeIntResource

func MakeIntResource(id uint16) *uint16

func MapVirtualKeyExW

func MapVirtualKeyExW(uCode winapi.UINT, uMapType winapi.UINT, dwhkl winapi.HKL) winapi.UINT

func MapVirtualKeyW

func MapVirtualKeyW(uCode winapi.UINT, uMapType winapi.UINT) winapi.UINT

func PeekMessageW

func PeekMessageW(msg *Msg,
	hWnd winapi.HWND,
	wMsgFilterMin winapi.UINT,
	wMsgFilterMax winapi.UINT,
	wRemoveMsg winapi.UINT) (winapi.BOOL, error)

func PostQuitMessage

func PostQuitMessage(exitcode int32)

func RegisterClassExW

func RegisterClassExW(wndclass *WNDCLASSEX) (winapi.ATOM, error)

func ReleaseDC

func ReleaseDC(hwnd winapi.HWND, dc winapi.HDC) (int, error)

func SendMessageW

func SendMessageW(hWnd winapi.HWND, msg winapi.UINT, wparam uintptr, lparam uintptr) (winapi.LRESULT, error)

func SetFocus

func SetFocus(hwnd winapi.HWND) winapi.HWND

func SetWindowLongPtrW

func SetWindowLongPtrW(hWnd winapi.HWND, nIndex int, dwNewLong winapi.LONG_PTR) (winapi.LONG_PTR, error)

func SetWindowPos

func SetWindowPos(hwnd winapi.HWND, hWndInsertAfter winapi.HWND, x int32, y int32, cx int32, cy int32, uFlags winapi.UINT) bool

func ShowCursor

func ShowCursor(show winapi.BOOL) (int, error)

func ShowWindow

func ShowWindow(hwnd winapi.HWND, cmdshow int32) bool

func TranslateMessage

func TranslateMessage(msg *Msg) bool

func UpdateWindow

func UpdateWindow(hwnd winapi.HWND) bool

Types

type CREATESTRUCTW

type CREATESTRUCTW struct {
	CreateParams winapi.LPVOID
	Instance     winapi.HINSTANCE
	Menu         winapi.HMENU
	HwndParent   winapi.HWND
	Cy           int
	Cx           int
	Y            int
	X            int
	Style        winapi.LONG
	Name         winapi.LPCWSTR
	Class        winapi.LPCWSTR
	ExStyle      winapi.DWORD
}

type Msg

type Msg struct {
	Hwnd    winapi.HWND
	Message winapi.UINT
	Wparam  winapi.WPARAM
	Lparam  winapi.LPARAM
	Time    uint32
	Pt      Point
}

type Point

type Point struct {
	X uintptr
	Y uintptr
}

type Rect

type Rect struct {
	Left   int32
	Top    int32
	Right  int32
	Bottom int32
}

type WNDCLASSEX

type WNDCLASSEX struct {
	Size       uint32
	Style      uint32
	WndProc    winapi.WNDPROC
	ClsExtra   int32
	WndExtra   int32
	Instance   winapi.HINSTANCE
	Icon       winapi.HICON
	Cursor     winapi.HCURSOR
	Background winapi.HBRUSH
	MenuName   winapi.LPCWSTR
	ClassName  winapi.LPCWSTR
	IconSm     winapi.HICON
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL