Alright. The function DrawIconEx works well. I'm using transparent frame and the area where icon is to be drawn is covered by the same frame. But after drawing, the icon doesn't appear.