|
-
May 9th, 2009, 02:43 AM
#1
Need to show application in SystemTray Hide it in Task Managaer
Hi To ALL!!!
I Need Some help. I did to show my application in System Tray. Now i wanna to hide the application in Task Manager.
I've find this code in Net to show in system tray. Can any one tell how to hide it in Task Manager.
BOOL CEXDlg::TrayMessage(DWORD dwMessage)
{
CString str(_T("Internet Everywhere"));
NOTIFYICONDATA nid;
nid.cbSize = sizeof(NOTIFYICONDATA);
nid.hWnd = m_hWnd;
nid.uID = IDI_TRAYICON;
nid.uFlags = NIF_MESSAGE|NIF_ICON;
nid.uCallbackMessage = MYWM_NOTIFYICON;
VERIFY (nid.hIcon = LoadIcon(AfxGetInstanceHandle(),MAKEINTRESOURCE(IDI_TRAYICON)));
nid.uFlags = NIF_MESSAGE|NIF_ICON|NIF_TIP;
lstrcpyn(nid.szTip, (LPCTSTR)str, sizeof(nid.szTip)/sizeof(nid.szTip[0]));
return Shell_NotifyIcon(dwMessage, &nid);
}
Thanks & Regards
Arjun
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|