// Called when a bubble notification is closed.
// The return code indicates the close condition.
// You can customize the pData argument to suit your needs as well.
static void BubbleWindowCallback(void* pData, int nReturnCode)
{
CString strMsg;
switch (nReturnCode)
{
case AcTrayItemBubbleWindowControl::BUBBLE_WINDOW_ERROR_NO_CREATE:
AfxMessageBox(_T("Couldn't Create the Bubble Window!"));
break;
case AcTrayItemBubbleWindowControl::BUBBLE_WINDOW_ERROR_NO_ICONS:
AfxMessageBox(_T("No Tray Area for the Bubble Window!"));
break;
case AcTrayItemBubbleWindowControl::BUBBLE_WINDOW_ERROR_NO_NOTIFICATIONS:
AfxMessageBox(_T("No Bubble Window Notifications!"));
break;
case AcTrayItemBubbleWindowControl::BUBBLE_WINDOW_CLOSE:
acutPrintf(L"\nNotification Closed...\n");
break;
case AcTrayItemBubbleWindowControl::BUBBLE_WINDOW_TIME_OUT:
acutPrintf(L"\nNotification Timed Out...\n");
break;
case AcTrayItemBubbleWindowControl::BUBBLE_WINDOW_HYPERLINK_CLICK:
acutPrintf(L"\nHyperlink Selected...\n");
break;
}
acedPostCommandPrompt();
}