just add them to the struct?
i tried but can't get it to work. (i guess i am skipping some steps.)
changed struct with this one:
#define NIF_INFO 0x00000010 //uFlags flag
#define NIIF_INFO 0x00000001 //baloon tooltip flag(info icon)
typedef struct _NOTIFYICONDATA{
DWORD cbSize;
HWND hWnd;
UINT uID;
UINT uFlags;
UINT uCallbackMessage;
HICON hIcon;
CHAR szTip[128];
//baloon vars
UINT uTimeout;
CHAR szInfo[256];
CHAR szInfoTitle[64];
DWORD dwInfoFlags;
HICON hBalloonIcon;
}NOTIFYICONDATA;
and this function:
BOOL ShowBalloonTip(CHAR* msg, CHAR* title,UINT uTimeout, DWORD dwInfoFlags)
{
_nid.uFlags = NIF_INFO;
_nid.uTimeout = uTimeout;
_nid.dwInfoFlags = NIIF_INFO;
strcpy(_nid.szInfo,msg);
strcpy(_nid.szInfoTitle,title);
return Shell_NotifyIcon(NIM_MODIFY, &_nid);
}
it doesn't crash but it doesnt do anything either.
(btw, idk about headers but doesnt this related to OS's shell32.dll, i mean if functions are there, no reason they don't work?)