1)At run-time, you can change the icon by calling the
LoadIcon() function?
Answers were Sorted based on User's Feedback
Answer / naresh challa
int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
HICON hIcon=LoadIcon(NULL,IDI_QUESTION);
SetIcon(hIcon,FALSE);
}
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / 106743013743
Hi,
int Ctharam::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
HICON hIcon = LoadIcon(AfxGetResourceHandle(),
(LPCTSTR)IDI_ICON9);
SetIcon(hIcon,FALSE);
}
Try it, I hope that i might be helpful to You
Code by Ctharam
Is This Answer Correct ? | 0 Yes | 2 No |
What does mfc stand for?
How can i implement the dynamic menus in MFC plz give the code
what is the meaning of constant FILE EXCEEDS LENGTH LIMIT while loading from ps file to vsam in the jcl?
What is the difference between Synchronous sockets and asynchronous sockets?
What is userdefine Messages in MFC?
Name the Synchronization objects?
How can server communicate with more than one client
I can i set size of integer variable should be fixed for different operating systems(Ex i want integer size is 2bytes in OS)
How many types of dialog box are their
Explain StretchBlt and BitBlt
1)To Remove WS_MINIMIZEBOX in a Frame ?
What is the difference between the ASSERT and VERIFY macros?