source: trunk/src/3rdparty/os2/xsystray/xsystray_api.h@ 256

Last change on this file since 256 was 256, checked in by Dmitry A. Kuminov, 16 years ago

gui: xsystray: Further coding (established communication channel between the clients and the server, some bug fixes).

  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Date Revision Author Id
File size: 1.4 KB
Line 
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
20extern "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
28typedef struct
29{
30 ULONG ulMouseMsg;
31 POINTS ptsPointerPos;
32 USHORT fsHitTestRes;
33 USHORT fsFlags;
34
35} XSTMOUSEMSG, *PXSTMOUSEMSG;
36
37BOOL xstQuerySysTrayVersion(PULONG pulMajor, PULONG pulMinor, PULONG pulRevision);
38BOOL xstAddSysTrayIcon(HWND hwnd, ULONG ulId, HPOINTER hIcon, ULONG ulMsgId,
39 ULONG ulFlags);
40BOOL xstRemoveSysTrayIcon(HWND hwnd, ULONG ulId);
41BOOL xstSetSysTrayIconToolTip(HWND hwnd, ULONG ulId, PSZ pszText);
42BOOL xstShowSysTrayIconBalloon(HWND hwnd, ULONG ulId, PSZ pszTitle, PSZ pszText,
43 ULONG ulFlags, ULONG ulTimeout);
44BOOL xstHideSysTrayIconBalloon(HWND hwnd, ULONG ulId);
45
46BOOL xstQuerySysTrayIconRect(HWND hwnd, ULONG ulId, PRECTL prclRect);
47
48ULONG xstGetSysTrayCreatedMsgId();
49
50ULONG xstGetSysTrayMaxTextLen();
51
52#if __cplusplus
53}
54#endif
55
56#endif // XSYSTRAY_API_HEADER_INCLUDED
57
Note: See TracBrowser for help on using the repository browser.