Changeset 837 for trunk/src/3rdparty/os2/xsystray/apilib/xsystray.h
- Timestamp:
- Mar 18, 2011, 2:28:54 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/3rdparty/os2/xsystray/apilib/xsystray.h
r835 r837 13 13 * Refer to the "API" file for more details about the public API. 14 14 * 15 * Copyright (C) 2009 Dmitry A.Kuminov15 * Copyright (C) 2009 Kuminov 16 16 * 17 17 * This file is part of the Extended system tray widget source package. … … 81 81 } XSTWHEELMSG, *PXSTWHEELMSG; 82 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 83 99 BOOL XSTAPI xstQuerySysTrayVersion(PULONG pulMajor, PULONG pulMinor, 84 100 PULONG pulRevision); 85 101 102 /* 103 *@@ xstAddSysTrayIcon: 104 * 105 * Adds an icon for the given window handle to the system tray. The icon ID 106 * is used to distinguish between several icons for the same window handle. 107 * If the icon with the specified ID already exists in the system tray, it 108 * will be replaced. 109 * 110 * Returns TRUE on success and FALSE otherwise. 111 * 112 * The specified window handle receives notification messages about icon 113 * events using the message ID specified by the ulMsgId parameter. The 114 * layout of the message parameters is as follows: 115 * 116 * param1 117 * USHORT usIconID icon ID 118 * USHORT usNotifyCode notify code, one of XST_IN_ constants 119 * 120 * param2 121 * PVOID pData notify code specific data (see below) 122 * 123 * The following notify codes are currently recognized: 124 * 125 * XST_IN_MOUSE: 126 * Mouse event in the icon area. Currently, only mouse click 127 * messages are recognized. param2 is a pointer to the XSTMOUSEMSG 128 * structure containing full mouse message details. 129 * 130 * XST_IN_CONTEXT: 131 * Context menu event in the icon area. param2 is a pointer to the 132 * XSTCONTEXTMSG structure containing full message details. 133 * 134 * XST_IN_WHEEL: 135 * Mouse wheel event in the icon area. param2 is a pointer to the 136 * XSTWHEELTMSG structure containing full message details. 137 * 138 * NOTE: The maximum tooltip text length (including terminating null) is 139 * limited to a value returned by xstGetSysTrayMaxTextLen(). If the 140 * supplied string is longer, it will be truncated. 141 */ 142 86 143 BOOL XSTAPI xstAddSysTrayIcon(HWND hwnd, USHORT usId, HPOINTER hIcon, 87 144 PCSZ pcszToolTip, ULONG ulMsgId, ULONG ulFlags); 88 145 146 /* 147 *@@ xstReplaceSysTrayIcon: 148 * 149 * Replaces the existing icon previously added by xstAddSysTrayIcon() with 150 * a new icon. 151 * 152 * Returns TRUE on success and FALSE otherwise. 153 */ 154 89 155 BOOL XSTAPI xstReplaceSysTrayIcon(HWND hwnd, USHORT usId, HPOINTER hIcon); 90 156 157 158 159 160 161 162 163 164 165 91 166 BOOL XSTAPI xstRemoveSysTrayIcon(HWND hwnd, USHORT usId); 92 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 93 185 BOOL XSTAPI xstSetSysTrayIconToolTip(HWND hwnd, USHORT usId, PCSZ pcszToolTip); 186 187 188 189 190 191 94 192 95 193 BOOL XSTAPI xstShowSysTrayIconBalloon(HWND hwnd, USHORT usId, PCSZ pcszTitle, … … 97 195 ULONG ulTimeout); 98 196 197 198 199 200 201 202 99 203 BOOL XSTAPI xstHideSysTrayIconBalloon(HWND hwnd, USHORT usId); 100 204 205 206 207 208 209 210 211 212 213 101 214 BOOL XSTAPI xstQuerySysTrayIconRect(HWND hwnd, USHORT usId, PRECTL prclRect); 102 215 216 217 218 219 220 221 222 223 224 225 226 227 103 228 ULONG XSTAPI xstGetSysTrayCreatedMsgId(); 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 104 247 105 248 ULONG XSTAPI xstGetSysTrayMaxTextLen();
Note:
See TracChangeset
for help on using the changeset viewer.