I have problem with showing bitmap in static picture control.

i cant debug it on wince - so i tested on winxp and just moved code.

i have static control pic - with default bitmap.
By clicking on button it should change to another one.
on initDlg
i do

CBitmap a=LoadBitmap(IDB_BITMAP1);

and in the button function onClick i do

m_pic.SetBitmap(a);

m_pic - is control variable for picture control created by ClassWizard
////////// in vc++6 its ok
when i compile this in Embedded Visual C++
it runs as i was told without showing bitmaps


Can anyone help me with this ?