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 |
If there is more than 100 control in a window how we can change the Taborder of a controls
What is the initial function to be called in MFC and what it will do
How to update windows title bar dynamically?
What view class enables you to use an edit control as a view?
What is the difference between hinsrtance and hprevinstance in WinMain function?
What is difference between the TCP/IP and UDP socket
What is the base class for most MFC classes?
What is Thread ?(VC++)What is the difference between Cmutex and Csemaphone?
what is the use of Mutex and critical section
List out the parameters of WinMain Function.
Does the application have more than one object? If Yes, Briefly explain.
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