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 functioning of DIalodDataXchange ..?
How to access document object from view ?
what is the use of CCmdTarget?
what is the use of AFX_MANAGE_STATE ?
visual Pogramming c++ coding for create a paint application.. (Please someone help me)
what is message loop how mfc does it internally?
what if we provide two message handler for same message ?
What is the difference between the ASSERT and VERIFY macros?
What is LPCTSTR? What does LP denote it?
What is LoadLibrary function returns?
What is CALLBACK? How it work? what is the advantage of CALLBACK, please explain with an example
How many types of combo box are their
2 Answers Aaditya Info Solutions, E Logic,