The lines of code are from my program, they work ok on winXP. On PPC2002
emulator, however, the icon doesn't appear

What's wrong with the code? Anyone can help?

CBitmap bm;
CImageList imglist;
NOTIFYICONDATA notifyicondata;

imglist.Create( 16, 16, ILC_COLOR32 | ILC_MASK, 0, 0 );
bm.LoadBitmap( IDB_WEATHER );
imglist.Add( &bm, RGB(255,255,255) );

notifyicondata.uFlags = NIF_TIP | NIF_ICON | NIF_MESSAGE;
notifyicondata.cbSize = sizeof(notifyicondata);
notifyicondata.hWnd = AfxGetApp()->m_pMainWnd->m_hWnd;
notifyicondata.uID = 100;
lstrcpy( notifyicondata.szTip, TEXT("Something"));
notifyicondata.hIcon = imglist.ExtractIcon( 0 );
notifyicondata.uCallbackMessage = WM_USER +1;

Shell_NotifyIcon( NIM_ADD, &notifyicondata );