|
-
April 29th, 1999, 11:58 PM
#1
Icons
How do you change the icon in a window's title bar?
-
April 30th, 1999, 12:49 AM
#2
Re: Icons
Assign the desired icon to IDR_MAINFRAME at design time or if u want to set it at run time then
HICON hIconNew = AfxGetApp()->LoadIcon( IDI_ICON1);
if( hIconNew)
{
AfxGetApp()->m_pMainWnd->SetIcon( hIconNew, TRUE);
}
Rajesh M. Jangid
C,C++,VC++,Java(C plus plus minus)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|