Edit both the 32x32 and 16x16 versions of the icon. If you assign this
icon as IDR_MAINFRAME it will be implicitly used for your app.
Otherwise, look into the SetIcon method. Note that if you SetIcon for
a window, you have to do two calls, one for the 32x32 and one for the
16x16.
joe
Quote:
>Ok, I think this is one of those most obvious and stupid questions in
>the group, but still...
>I have file "incon.ico" (ir if you want "icon.bmp"). size 32x32 pixels.
>I need to change default mainframe icon (left upper corner of main frame
>;O) ).
>Any "code" for this ?
>Thanks,
>MiXaS
Joseph M. Newcomer
Web: www3.pgh.net/~newcomer
MVP Tips: www3.pgh.net/~newcomer/mvp_tips.htm
Author of "Win32 Programming" (with Brent Rector, Addison-Wesley, 1997)
Author of "Developing Windows NT Device Drivers" (with Ed Dekker, AWL, 1999)