Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Adding icon to the status area in Pocket PC

I m having trouble in adding an icon to the status area. Couldnt able to get it displayed there. Are there any specific icons for Windows CE? I m using the following function.

HWND hWnd;

BOOL res;
NOTIFYICONDATA tnid;
HICON hicon;
LPSTR lpszTip;

tnid.cbSize = sizeof(NOTIFYICONDATA);
tnid.hWnd = hWnd;
tnid.uID = 115;
tnid.uFlags = NIF_MESSAGE | NIF_ICON | NIF_TIP;
//tnid.uCallbackMessage = MYWM_NOTIFYICON;
hicon = LoadIcon(NULL, MAKEINTRESOURCE(115));
tnid.hIcon = hicon;
tnid.szTip[0] = (TCHAR)'';

res = Shell_NotifyIcon(NIM_ADD, &tnid);

if (hicon)
DestroyIcon(hicon);

When the run the program I see the already present icons in the status area move to left making space for this icon but nothin seen there?
Appreicate if I get some help here.
Sign In or Register to comment.