ערכתי לאחרונה בתאריך 05.01.08 בשעה 01:38 בברכה, Limp Bizkit
אתה צריך להשתמש בפונקציית API שנקראת Shell_NotifyIconהפונקציה אחראית על שליחת הודעה למערכת כדי להוסיף / לעדכן / למחוק אייקון מסויים מה-system tray
הפונקציה מקבלת פרמטרים שונים בהתאם למה שאתה רוצה לבצע (להוסיף, לעדכן או למחוק את האייקון מה-system tray)
דוגמא (מתוך MSDN)
void Shell_NotifyIconExample() { // Add a Shell_NotifyIcon notificaion NOTIFYICONDATA nid = {0}; nid.cbSize = sizeof(nid); nid.uID = 100; // Per Windows Embedded CE docs, values from 0 to 12 are reserved and should not be used. nid.uFlags = NIF_ICON; nid.hIcon = LoadIcon(g_hInstance, MAKEINTRESOURCE(IDI_SAMPLEICON)); // Add the notification to the tray. Shell_NotifyIcon(NIM_ADD, &nid); // Update the notification icon. nid.uFlags = NIF_ICON; nid.hIcon = LoadIcon(g_hInstance, MAKEINTRESOURCE(IDI_SAMPLEICON2)); Shell_NotifyIcon(NIM_MODIFY, &nid); // Remove the notification from the tray. Shell_NotifyIcon(NIM_DELETE, &nid); return; }
|
לעוד מידע :
http://msdn2.microsoft.com/en-us/library/aa922175.aspx

Ask any racer, any real racer. It doesn't matter if you win by an inch or a mile; winning's
winning.