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 |
How we call a dialog in another dialog?
Name the Synchronization objects?
What is the difference between Synchronous sockets and asynchronous sockets?
How do you change the properties for a tree view control that is part of the CTreeView class?
Explain the flow of SDI application?
How can update edit control data of an executing application from other application?
what is the use of CCmdTarget?
How to create a Modeless Dialog?
Types of DLL's
what is the use of AFX_MANAGE_STATE ?
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
Explain in sort What is CTargetObject?