summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorAlexander Neumann <an2048@gmail.com>2019-05-06 10:34:48 +0200
committerGitHub <noreply@github.com>2019-05-06 10:34:48 +0200
commit788d8ce2679c557541c2ff55a3f9f1cb0be6f1e1 (patch)
treed482c86531213b7be36f409f83d5efa80ed1d5ec
parentMerge pull request #67 from dfbag7/add-resource-api-functions (diff)
parentshell32: add missing notify icon constants (diff)
downloadwireguard-windows-788d8ce2679c557541c2ff55a3f9f1cb0be6f1e1.tar.xz
wireguard-windows-788d8ce2679c557541c2ff55a3f9f1cb0be6f1e1.zip
Merge pull request #68 from zx2c4-forks/jd/notifyicon-constants
shell32: add missing notify icon version constants
-rw-r--r--shell32.go46
1 files changed, 34 insertions, 12 deletions
diff --git a/shell32.go b/shell32.go
index 9fc209ae..d9c62cca 100644
--- a/shell32.go
+++ b/shell32.go
@@ -82,11 +82,14 @@ const (
// NotifyIcon flags
const (
- NIF_MESSAGE = 0x00000001
- NIF_ICON = 0x00000002
- NIF_TIP = 0x00000004
- NIF_STATE = 0x00000008
- NIF_INFO = 0x00000010
+ NIF_MESSAGE = 0x00000001
+ NIF_ICON = 0x00000002
+ NIF_TIP = 0x00000004
+ NIF_STATE = 0x00000008
+ NIF_INFO = 0x00000010
+ NIF_GUID = 0x00000020
+ NIF_REALTIME = 0x00000040
+ NIF_SHOWTIP = 0x00000080
)
// NotifyIcon messages
@@ -106,15 +109,33 @@ const (
// NotifyIcon info flags
const (
- NIIF_NONE = 0x00000000
- NIIF_INFO = 0x00000001
- NIIF_WARNING = 0x00000002
- NIIF_ERROR = 0x00000003
- NIIF_USER = 0x00000004
- NIIF_NOSOUND = 0x00000010
+ NIIF_NONE = 0x00000000
+ NIIF_INFO = 0x00000001
+ NIIF_WARNING = 0x00000002
+ NIIF_ERROR = 0x00000003
+ NIIF_USER = 0x00000004
+ NIIF_NOSOUND = 0x00000010
+ NIIF_LARGE_ICON = 0x00000020
+ NIIF_RESPECT_QUIET_TIME = 0x00000080
)
-const NOTIFYICON_VERSION = 3
+// NotifyIcon notifications
+const (
+ NIN_SELECT = WM_USER + 0
+ NIN_KEYSELECT = WM_USER + 1
+ NIN_BALLOONSHOW = WM_USER + 2
+ NIN_BALLOONHIDE = WM_USER + 3
+ NIN_BALLOONTIMEOUT = WM_USER + 4
+ NIN_BALLOONUSERCLICK = WM_USER + 5
+ NIN_POPUPOPEN = WM_USER + 6
+ NIN_POPUPCLOSE = WM_USER + 7
+)
+
+// NotifyIcon versions
+const (
+ NOTIFYICON_VERSION = 3
+ NOTIFYICON_VERSION_4 = 4
+)
// SHGetFileInfo flags
const (
@@ -263,6 +284,7 @@ type NOTIFYICONDATA struct {
SzInfoTitle [64]uint16
DwInfoFlags uint32
GuidItem syscall.GUID
+ HBalloonIcon HICON
}
type SHFILEINFO struct {