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

Tell me about different kinds of synchranization objects ?

6 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  


if i modified data in 1 view how does the other view knows

2 Answers   Siemens,


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

5 Answers   Wipro,


Have you ever used win32 APIs ?

4 Answers   Microsoft,






What is subclassing?

2 Answers  


What is model and modeless dialog box ? Give some examples?

2 Answers   Mphasis,


How to convert the content of buffer into lower case character.

3 Answers   E Logic,


how to give colour for dialog button or static buuto?any one explain full code ?pls pls

3 Answers  


What is a message map, and what is the advantage of a message map over virtual functions?

1 Answers  


Tell us something about MFC?

7 Answers   Microsoft,


what is message loop how mfc does it internally?

4 Answers   Aspire,






Categories