1)At run-time, you can change the icon by calling the
LoadIcon() function?

Answers were Sorted based on User's Feedback



1)At run-time, you can change the icon by calling the LoadIcon() function?..

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

1)At run-time, you can change the icon by calling the LoadIcon() function?..

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

Post New Answer

More MFC Interview Questions

what is the use of CCmdTarget?

4 Answers   Siemens,


What function is used to retrieve the currently selected index in a list box?

2 Answers  


visual Pogramming c++ coding for create a paint application.. (Please someone help me)

2 Answers  


What are the advantages of using Doc/View or SDI over DialogBox

2 Answers  


In VC++ How to transfer between one exe to another exe while running..

5 Answers   Wipro,






what do you mean by psychic window?

2 Answers   Patni,


What view class enables you to use an edit control as a view?

1 Answers  


What is the base class for MFC

3 Answers   HCL,


What is the size of class

18 Answers   Aircom,


What is the difference between ASSERT and VERIFY?

2 Answers  


what is the difference between compiling and building?

1 Answers  


What is mfc class hierarchy?

0 Answers  


Categories