1 | /*
|
---|
2 | * Extended system tray widget for XCenter/eCenter
|
---|
3 | *
|
---|
4 | * Public API
|
---|
5 | *
|
---|
6 | * Made by netlabs.org
|
---|
7 | *
|
---|
8 | * Author: Dmitry A. Kuminov
|
---|
9 | *
|
---|
10 | * This software is public domain.
|
---|
11 | *
|
---|
12 | * WITHOUT ANY WARRANTY..., AT YOUR OWN RISC... ETC.
|
---|
13 | *
|
---|
14 | */
|
---|
15 |
|
---|
16 | #ifndef XSYSTRAY_API_HEADER_INCLUDED
|
---|
17 | #define XSYSTRAY_API_HEADER_INCLUDED
|
---|
18 |
|
---|
19 | #if __cplusplus
|
---|
20 | extern "C" {
|
---|
21 | #endif
|
---|
22 |
|
---|
23 | // notification code constants for the notification messages sent by the system
|
---|
24 | // tray (refer to xstAddSysTrayIcon() for details)
|
---|
25 | #define XST_IN_MOUSE 0x0001
|
---|
26 |
|
---|
27 | // structure for XST_IN_MOUSE
|
---|
28 | typedef struct
|
---|
29 | {
|
---|
30 | ULONG ulMouseMsg;
|
---|
31 | POINTS ptsPointerPos;
|
---|
32 | USHORT fsHitTestRes;
|
---|
33 | USHORT fsFlags;
|
---|
34 |
|
---|
35 | } XSTMOUSEMSG, *PXSTMOUSEMSG;
|
---|
36 |
|
---|
37 | BOOL xstQuerySysTrayVersion(PULONG pulMajor, PULONG pulMinor, PULONG pulRevision);
|
---|
38 | BOOL xstAddSysTrayIcon(HWND hwnd, ULONG ulId, HPOINTER hIcon, ULONG ulMsgId,
|
---|
39 | ULONG ulFlags);
|
---|
40 | BOOL xstRemoveSysTrayIcon(HWND hwnd, ULONG ulId);
|
---|
41 | BOOL xstSetSysTrayIconToolTip(HWND hwnd, ULONG ulId, PSZ pszText);
|
---|
42 | BOOL xstShowSysTrayIconBalloon(HWND hwnd, ULONG ulId, PSZ pszTitle, PSZ pszText,
|
---|
43 | ULONG ulFlags, ULONG ulTimeout);
|
---|
44 | BOOL xstHideSysTrayIconBalloon(HWND hwnd, ULONG ulId);
|
---|
45 |
|
---|
46 | BOOL xstQuerySysTrayIconRect(HWND hwnd, ULONG ulId, PRECTL prclRect);
|
---|
47 |
|
---|
48 | ULONG xstGetSysTrayCreatedMsgId();
|
---|
49 |
|
---|
50 | ULONG xstGetSysTrayMaxTextLen();
|
---|
51 |
|
---|
52 | #if __cplusplus
|
---|
53 | }
|
---|
54 | #endif
|
---|
55 |
|
---|
56 | #endif // XSYSTRAY_API_HEADER_INCLUDED
|
---|
57 |
|
---|