Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

icons

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
how do i set the little icon in the upper right corner of the application for an SDI? i wanna make my own picture for it..
 
Try this

1. In the tree view of your application resources in the workspace pane, expand the icon branch and select the IDR_MAINFRAME icon. This brings the application icon into the editor area of the Developer Studio.


2. Using the painting tools provided, repaint the icon to display an image that you want to use to represent your application.


3. When you compile and run your application, you will notice your custom icon in the top-left corner of your application window.

I hop this is what you were asking for and that it helps you.

Pelayo
 
The easy-way solution for an icon in the upper right corner of the application works in

doc/view sdi
doc/view mdi
non doc/view mdi

but not on

non doc/view sdi applications.
Who has a solution for that case?
 
on non doc/view sdi applications, write into

BOOL CNo_doc_sdiApp::InitInstance()
{
...
AfxGetMainWnd()->SetIcon( AfxGetApp()->LoadIcon(IDR_MAINFRAME), TRUE);
}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top