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 use of Mutex and critical section
1)set the Title for The File DialogBox, in MFC?
1)How to change the size of a button at run time ?
What types of threads are supported by MFC framework?
i have created runtime menu -- ( admistrator ->managepackage,manage module). but now i want to open a dialog when i select manage package and any other diaolg when selecting manage module ( whole selection is at run time only ) . Please HELP .its urgently required
What is the range of intensity of RGB
How can i implement the dynamic menus in MFC plz give the code
What is userdefine Messages in MFC?
1)How to load an icon on a button as Dynamically ?
What is the use of UpdateData funciton ?
How to handle dynamic menus in mfc? What happens when client calls cocreateinstance?
How to handle command line arguements from simple MFC application ?