HRESULT CSysTray::InitIcons()
{
+ TRACE("Initializing Notification icons...\n");
for (int i = 0; i < g_NumIcons; i++)
{
HRESULT hr = g_IconHandlers[i].pfnInit(this);
HRESULT CSysTray::ShutdownIcons()
{
+ TRACE("Shutting down Notification icons...\n");
for (int i = 0; i < g_NumIcons; i++)
{
HRESULT hr = g_IconHandlers[i].pfnShutdown(this);
HRESULT CSysTray::UpdateIcons()
{
+ TRACE("Updating Notification icons...\n");
for (int i = 0; i < g_NumIcons; i++)
{
HRESULT hr = g_IconHandlers[i].pfnUpdate(this);
HRESULT CSysTray::NotifyIcon(INT code, UINT uId, HICON hIcon, LPCWSTR szTip)
{
- NOTIFYICONDATA nim;
+ NOTIFYICONDATA nim = { 0 };
+
+ TRACE("NotifyIcon code=%d, uId=%d, hIcon=%p, szTip=%S\n", code, uId, hIcon, szTip);
+
nim.cbSize = sizeof(NOTIFYICONDATA);
- nim.uFlags = NIF_ICON | NIF_STATE | NIF_TIP;
+ nim.uFlags = NIF_MESSAGE | NIF_ICON | NIF_STATE | NIF_TIP;
nim.hIcon = hIcon;
nim.uID = uId;
nim.uCallbackMessage = uId;
HRESULT CSysTray::CreateSysTrayThread()
{
- DbgPrint("CSysTray Init TODO: Initialize tray icon handlers.\n");
+ TRACE("CSysTray Init TODO: Initialize tray icon handlers.\n");
HANDLE hThread = CreateThread(NULL, 0, s_SysTrayThreadProc, this, 0, NULL);
return TRUE;
}
- DbgPrint("SysTray message received %u (%08p %08p)\n", uMsg, wParam, lParam);
+ TRACE("SysTray message received %u (%08p %08p)\n", uMsg, wParam, lParam);
hr = ProcessIconMessage(uMsg, wParam, lParam);
if (FAILED(hr))