Board index » Visual Studio » CWinApp Setting application icon

CWinApp Setting application icon

Visual Studio380
In CWinApp I can set the application title by changing the data member

m_pszAppName. This title then appears in the top left of the application

window.



Just to the title's right is a logo icon which is defaulted to the MFC icon.

I'd like to change it to the applications icon. How is that done?



Thanks,

Neil


-
 

Re:CWinApp Setting application icon

Look in your resources for an icon with the id IDR_MAINFRAME and modify

that. A point to be careful is that an Icon can have entries for different

sizes and colors. If you are simply going to edit that instead of the

changing the file that it points to, make sure that you delete the ones that

you are not intrested in.



AliR.



"Neil B" <NeilB@discussions.microsoft.com>wrote in message

Quote
In CWinApp I can set the application title by changing the data member

m_pszAppName. This title then appears in the top left of the application

window.



Just to the title's right is a logo icon which is defaulted to the MFC

icon.

I'd like to change it to the applications icon. How is that done?



Thanks,

Neil





-

Re:CWinApp Setting application icon

To change the application icon, change IDR_MAINFRAME icon in resource

editor. Make sure to change the content for both 16x16 and 32x32.



---------

Ajay Kalra

ajaykalra@yahoo.com



-

Re:CWinApp Setting application icon



You can set Custom Icon by using SetIcon(...) Api,



--



With Regards

Alok Gupta

Visit me at alok.bizhat.com">alok.bizhat.com



"I think this will Help"









"Neil B" <NeilB@discussions.microsoft.com>wrote in message

Quote
In CWinApp I can set the application title by changing the data member

m_pszAppName. This title then appears in the top left of the application

window.



Just to the title's right is a logo icon which is defaulted to the MFC

icon.

I'd like to change it to the applications icon. How is that done?



Thanks,

Neil





-