Since http://www.smorgasbordet.com/pellesc/ seems to be offline, you can find the Download of Pelles C here in this Forum.
Look here in msdn static control and SS_ICONIn PellesC Dialog Editor:Picture -> Properties -> Image put icon resource id to there like #8001.