Hello!
Normally if I click on an icon in the notification are.
The window for the notification closes,
if I click after somewhere else.
So this window doesn't bother further.
With my code I find no way to close it, without clicking to it.
What is the secret of the standard notifications?
Erhy
My code to display information for the notification
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
case WM_RBUTTONDOWN:
{
HMENU hMenu = LoadMenu(g_hInstance, MAKEINTRESOURCE(IDR_POPUP));
if (hMenu)
{
HMENU hSubMenu = GetSubMenu(hMenu, 0);
if (hSubMenu)
{
POINT stPoint;
GetCursorPos(&stPoint);
// TrackPopupMenu does not return so long as no click in menu
TrackPopupMenu(hSubMenu, TPM_LEFTALIGN | TPM_BOTTOMALIGN | PM_RIGHTBUTTON, stPoint.x, stPoint.y, 0, hWnd, NULL);
}
DestroyMenu(hMenu);
}
}
break;