Changeset 34080 in vbox
- Timestamp:
- Nov 15, 2010 5:18:03 PM (14 years ago)
- Location:
- trunk/src/VBox/Additions/WINNT/VBoxTray
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/VBoxTray/Makefile.kmk
r33966 r34080 36 36 VBoxVRDP.cpp \ 37 37 VBoxRestore.cpp \ 38 VBoxIPC.cpp \ 38 39 VBoxHelpers.cpp \ 39 40 VBoxTray.rc -
trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxTray.cpp
r34025 r34080 20 20 *******************************************************************************/ 21 21 #include "VBoxTray.h" 22 #include "VBoxTrayMsg.h" 22 23 #include "VBoxHelpers.h" 23 24 #include "VBoxSeamless.h" … … 28 29 #include "VBoxHostVersion.h" 29 30 #include "VBoxSharedFolders.h" 31 #include "VBoxIPC.h" 30 32 #include <VBoxHook.h> 31 33 #include "resource.h" … … 52 54 53 55 /* Global message handler prototypes. */ 54 int vboxTrayGlMsgTaskbarCreated( LPARAM lParam, WPARAM wParam);55 int vboxTrayGlMsgShowBalloonMsg( LPARAM lParam, WPARAM wParam);56 int vboxTrayGlMsgTaskbarCreated(WPARAM lParam, LPARAM wParam); 57 int vboxTrayGlMsgShowBalloonMsg(WPARAM lParam, LPARAM wParam); 56 58 57 59 /* Prototypes */ … … 97 99 }, 98 100 { 101 "IPC", 102 VBoxIPCInit, 103 VBoxIPCThread, 104 VBoxIPCDestroy 105 }, 106 { 99 107 NULL 100 108 } … … 111 119 112 120 /* VBoxTray specific stuff. */ 113 { 114 "VBoxTrayShowBalloonMsg", 115 vboxTrayGlMsgShowBalloonMsg 116 }, 121 /** @todo Add new messages here! */ 117 122 118 123 { … … 129 134 * @param lParam 130 135 */ 131 static int vboxTrayGlMsgTaskbarCreated( LPARAM lParam, WPARAM wParam)136 static int vboxTrayGlMsgTaskbarCreated(WPARAM wParam, LPARAM lParam) 132 137 { 133 138 return vboxTrayCreateTrayIcon(); 134 }135 136 /**137 * Shows a balloon tooltip message in VBoxTray's138 * message area in the Windows main taskbar.139 *140 * @return IPRT status code.141 * @param wParam142 * @param lParam143 */144 static int vboxTrayGlMsgShowBalloonMsg(LPARAM wParam, WPARAM lParam)145 {146 int rc = hlpShowBalloonTip(gInstance, gToolWindow, ID_TRAYICON,147 (char*)wParam /* Ugly hack! */, "Foo",148 5000 /* Time to display in msec */, NIIF_INFO);149 /*150 * If something went wrong while displaying, log the message into the151 * the release log so that the user still is being informed, at least somehow.152 */153 if (RT_FAILURE(rc))154 LogRel(("VBoxTray Information: %s\n", "Foo"));155 return rc;156 139 } 157 140 … … 245 228 { 246 229 unsigned threadid; 247 pTable->hThread = (HANDLE)_beginthreadex 248 249 250 251 252 230 pTable->hThread = (HANDLE)_beginthreadex(NULL, /* security */ 231 0, /* stacksize */ 232 pTable->pfnThread, 233 pTable->pInstance, 234 0, /* initflag */ 235 &threadid); 253 236 254 237 if (pTable->hThread == (HANDLE)(0)) -
trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxTray.h
r34025 r34080 93 93 char *pszName; 94 94 /** Function pointer for handling the message. */ 95 int (* pfnHandler) ( LPARAM lParam, WPARAM wParam);95 int (* pfnHandler) (WPARAM wParam, LPARAM lParam); 96 96 97 97 /* Variables. */
Note:
See TracChangeset
for help on using the changeset viewer.