Documentation ¶
Index ¶
- Constants
- func CreateWindowEx(dwExStyle uint32, lpClassName, lpWindowName *uint16, dwStyle uint32, ...) (uintptr, error)
- func DefWindowProc(hWnd uintptr, Msg uint32, wParam, lParam uintptr) (uintptr, error)
- func GetModuleHandle(lpModuleName *uint16) (uintptr, error)
- func LOWORD(dwValue uint32) uint16
- func LoadImage(hInst uintptr, name *uint16, type_ uint32, cx, cy int32, fuLoad uint32) (uintptr, error)
- func PostQuitMessage(nExitCode int32)
- func RegisterClassEx(Arg1 *WNDCLASSEX) (uint16, error)
- func Shell_NotifyIcon(dwMessage uint32, lpData *NOTIFYICONDATA) (int32, error)
- type GUID
- type MSG
- type NOTIFYICONDATA
- type POINT
- type TrayIcon
- type WNDCLASSEX
Constants ¶
View Source
const ( IMAGE_ICON = 1 LR_DEFAULTSIZE = 0x00000040 LR_LOADFROMFILE = 0x00000010 SW_SHOW = 5 CW_USEDEFAULT = ^0x7fffffff WS_CAPTION = 0x00c00000 WS_MAXIMIZEBOX = 0x00010000 WS_MINIMIZEBOX = 0x00020000 WS_OVERLAPPED = 0x00000000 WS_SYSMENU = 0x00080000 WS_THICKFRAME = 0x00040000 WS_OVERLAPPEDWINDOW = WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU | WS_THICKFRAME | WS_MINIMIZEBOX | WS_MAXIMIZEBOX WM_DESTROY = 0x0002 WM_SETICON = 0x0080 WM_MOUSEMOVE = 0x0200 WM_LBUTTONDOWN = 0x0201 WM_LBUTTONUP = 0x0202 WM_LBUTTONDBLCLK = 0x0203 WM_RBUTTONDOWN = 0x0204 WM_RBUTTONUP = 0x0205 WM_RBUTTONDBLCLK = 0x0206 WM_APP = 0x8000 )
Created by https://github.com/hallazzang/
View Source
const ( NIM_ADD = 0x00000000 NIM_MODIFY = 0x00000001 NIM_DELETE = 0x00000002 NIM_SETFOCUS = 0x00000003 NIM_SETVERSION = 0x00000004 NIF_MESSAGE = 0x00000001 NIF_ICON = 0x00000002 NIF_TIP = 0x00000004 NIF_STATE = 0x00000008 NIF_INFO = 0x00000010 NIF_GUID = 0x00000020 NIF_REALTIME = 0x00000040 NIF_SHOWTIP = 0x00000080 NIS_HIDDEN = 0x00000001 NIS_SHAREDICON = 0x00000002 )
View Source
const TrayIconMsg = WM_APP + 1
Variables ¶
This section is empty.
Functions ¶
func CreateWindowEx ¶
func DefWindowProc ¶
func GetModuleHandle ¶
func PostQuitMessage ¶
func PostQuitMessage(nExitCode int32)
func RegisterClassEx ¶
func RegisterClassEx(Arg1 *WNDCLASSEX) (uint16, error)
func Shell_NotifyIcon ¶
func Shell_NotifyIcon( dwMessage uint32, lpData *NOTIFYICONDATA) (int32, error)
Types ¶
type NOTIFYICONDATA ¶
type TrayIcon ¶
type TrayIcon struct {
// contains filtered or unexported fields
}
func NewTrayIcon ¶
func (*TrayIcon) SetTooltip ¶
Click to show internal directories.
Click to hide internal directories.