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 AFX_MANAGE_STATE ?

4 Answers   HCL,


What is primitive and non-primitive application?

2 Answers   HCL,


I have 2 threads. One thread prints odd numbers and the second thread prints even numbers. Now, I have to execute the threads alternatively so that i can output 1,2,3,4,5,6,..... write code for this?

1 Answers  


1.Get string1,string2,string3 1.add string1 and 2,string1 and 3. 2.replace vowels with T 3.count number of T. 4.remove T 5.COPY string1 to stringf. 6.restore string1. print the following 1.Number of T 2.StringF 3.string1+string2+string3 Use pointers and functions

1 Answers  


plzz tell me what we can do and dont in tally ERP & sap business one?

0 Answers  






Have you ever used win32 APIs ?

4 Answers   Microsoft,


General purpose classes in MFC

1 Answers   TCS,


What is the difference between Struts and JSF? Pls list some most suitable differences.

0 Answers  


What is the use of CObject::Dump function ?

4 Answers  


What is the use of UpdateData funciton ?

7 Answers  


1)set the Title for The File DialogBox, in MFC?

1 Answers  


Tell me the work of HTREDUCE and HTZOOM

1 Answers   E Logic,


Categories