如何捕获点标题栏上的图标的事件呢?
金笛子 2010-01-13 10:38:00 void SHNotificationIcon(HWND hwnd)
{
// This code will add an SHNotificaion notificaion (PocketPC only)
SHNOTIFICATIONDATA sn = {0};
sn.hwndSink = hwnd;
sn.cbStruct = sizeof(sn);
sn.dwID = 1;
sn.npPriority = SHNP_ICONIC;
//sn.csDuration = 15;
sn.hicon = LoadIcon(AfxGetResourceHandle(), MAKEINTRESOURCE(IDR_MAINFRAME));
sn.clsid = guidNotifyApp;
sn.grfFlags = SHNF_SILENT|SHNF_SPINNERS;//Silent
//sn.pszTitle = TEXT("Sample Notification");
//sn.pszHTML = TEXT("");
//sn.rgskn[0].pszTitle = TEXT("Dismiss");
sn.rgskn[0].skc.wpCmd = 100;
//Add the notification to the tray
SHNotificationAdd(&sn);
//Remove the notification from the tray
SHNotificationRemove(&CLSID_SHNAPI_Test, 1);
}
采用SHNotificationAdd(&sn);这个函数去添加图标到标题栏上,然后点这个图标图标就消失了 有什么办法捕获到这个点击事件呢?我不想让这个自己添加的这个图标消失。