Re: Can't add notification icon on WM 6.5
- From: "Trevor" <trevor@xxxxxxxx>
- Date: Thu, 30 Jul 2009 12:33:14 -0400
"pinguin" <oneneno@xxxxxxx> wrote in message news:072152AB-A25C-4A5D-8FD3-EFC40CC54773@xxxxxxxxxxxxxxxx
This function works on WM 6.1 but not on WM 6.5
.It doeasn't show icon on 6.5.
I have i doing wrong ? Or WM 6.5 has new API ?
void AddNotificationIcon(HICON hIcon, PTSTR pszTip)
{
SHNOTIFICATIONDATA* pNotification = NULL;
pNotification = (SHNOTIFICATIONDATA*)malloc(sizeof(SHNOTIFICATIONDATA));
pNotification->cbStruct = sizeof(SHNOTIFICATIONDATA);
pNotification->dwID = ICON_ID;
pNotification->npPriority = SHNP_INFORM;
pNotification->csDuration = -1;
pNotification->hicon = hIcon;
pNotification->clsid = guidPPCAlertsApp;
pNotification->grfFlags = NOTIF_SOFTKEY_FLAGS_HIDE;
pNotification->pszTitle = TEXT("Test");
pNotification->pszHTML = pszTip; // _T("<html><b>App service is
ready</b></html>");
pNotification->hwndSink = m_hWnd;
pNotification->rgskn[0].pszTitle = TEXT("Hide");
pNotification->rgskn[0].skc.wpCmd = 1004;
pNotification->rgskn[0].skc.grfFlags = SHNF_STRAIGHTTOTRAY;
SHNotificationAdd(pNotification);
}
What does SHNotificationAdd return on the 6.5 device?
.
- References:
- Can't add notification icon on WM 6.5
- From: pinguin
- Can't add notification icon on WM 6.5
- Prev by Date: CBitmapbutton on VS2005
- Next by Date: Re: CBitmapbutton on VS2005
- Previous by thread: Can't add notification icon on WM 6.5
- Next by thread: Display date on a picture
- Index(es):