BOOL AddNotifyIcon(HWND hWnd, UINT uiId, LPCTSTR lpIcon, char *szInfoBulle)
{
NOTIFYICONDATA nid;
nid.cbSize = sizeof(NOTIFYICONDATA);
nid.hWnd = hWnd;
nid.uID = uiId;
nid.uFlags = NIF_MESSAGE | NIF_ICON | NIF_TIP;
nid.uCallbackMessage = WM_TRAY_ICON;
nid.hIcon = LoadIcon(hInst, lpIcon);
strcpy(nid.szTip, szInfoBulle);
return Shell_NotifyIcon(NIM_ADD, &nid);
}
if(!Meilleur("Joky")) return ERREUR;<