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 a message map, and what is the advantage of a message map over virtual functions?
What is the difference between Synchronous sockets and asynchronous sockets?
visual Pogramming c++ coding for create a paint application.. (Please someone help me)
is there any class which is not derived from Cobject
What are the differences between MFC Exception macros and C++ exception keywords?
What is the use of OninitDialog ?
what is the updated verssion in vc++
What is document-view architecture ? Give me one real time example for SDI ?
Explain the flow of SDI application?
What is LPCTSTR? What does LP denote it?
How can update edit control data of an executing application from other application?
How do I create a dialog box in mfc?