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 |
Does the application have more than one object? If Yes, Briefly explain.
What function is used to disable a control at runtime?
how does the UIThread and worker thread communicates and handle events
How we can findout Memoryleaks, In what way it can be avoided
What is CSingleDocTemplate?
In MFC By Using Communication Between Dialog Boxes,How Can We Send Message Of one Dialog Box To Another Dialog.?
3 Answers Financial Technologies,
what is the difference between compiling and building?
What is LPCTSTR? What does LP denote it?
Explain Doc/View architecture
How many types of combo box are their
2 Answers Aaditya Info Solutions, E Logic,
How to update all the views whenver document got updated ?
Do you have an idea about MFC?