The problem about notifiation RRS feed

  • Question

  • hi
    I have added a user's notification to taskbar(using SHNotificaitonAdd), then A icon of users notification appears in the taskbar. while I create a windows to recevice the message from the notification.  the following code will be running when the window recevices the SHNN_SHOW.If the taskbar is only one user's notification, I click the icon in the taskbar,the following code is successfully running. 
    if there are 2+ user's notification in the taskbar, the icon in the taskbar will become to a system icon. When I click the icon , the blue (or red) bar will be appear under the taskbar, all icons of user's notification will appear here. then I click one of icons which I added , the program will be death on line  "SHNotificationUpdate(SHNUM_ICON,&stSHND)".

    How to solve it ?

    Thank you.

    the code runs on Windows Mobile 5.0 Emualtor.

     stSHND.cbStruct      = sizeof(SHNOTIFICATIONDATA);
     stSHND.dwID           = FETION_NOTIFY_ID;
     stSHND.clsid          = CLSID_FETION_NOTIFY;
     stSHND.hwndSink      = hMsgWnd;
     stSHND.hicon          = LoadIcon(hAppInst, MAKEINTRESOURCE(nIconID));    
     stSHND.npPriority      = SHNP_INFORM;
     stSHND.csDuration      = 0; 
     stSHND.grfFlags      = SHNF_STRAIGHTTOTRAY;
     stSHND.skm.cskc = 1;


    Thursday, May 14, 2009 6:15 AM

All replies

  • Hi wucl,

    Firstly please check memory and CPU whether they are insufficient.

    Secondly, if first is not the issue, can you provide completed project, without seeing it, it is difficult to say why you are getting the problem.

    Best regards,
    Guang-Ming Bian - MSFT
    Please remember to mark the replies as answers if they help and unmark them if they provide no help
    Monday, May 18, 2009 8:35 AM
  • I think either your memory is not adequate or you have a CPU issue. 
    Saturday, May 30, 2009 9:08 AM