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 is the initial function to be called in MFC and what it will do
How to handle dynamic menus in mfc? What happens when client calls cocreateinstance?
Have you ever used win32 APIs ?
1)why we cant create more than one instance of the class Derived from CWinApp
How to update windows title bar dynamically?
How you create a button dynamically?
List out the parameters of WinMain Function.
What is the range of intensity of RGB
How we call a dialog in another dialog?
What is LoadLibrary function returns?
What does mfc stand for?
how to give colour for dialog button or static buuto?any one explain full code ?pls pls