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

11 Answers   Nagarro, HCL,


What?s the difference between Modal and Modeless Dialog?

12 Answers   Usl India, Jekson,


how u can move CDC pointer to one line in cview?

2 Answers  


Do you have an idea about MFC?

0 Answers   CDAC, C DAC,


What is CSingleDocTemplate?

1 Answers  






Will there be any difference in the image buffer size if it is loaded in from CString to LPTSTR using GetBuffer()? lptstr = string.GetBuffer(0);

2 Answers  


What is socket?

3 Answers  


Tell me about different kinds of synchranization objects ?

6 Answers  


How to setup a timer?

3 Answers   IBM,


What is the difference between the ASSERT and VERIFY macros?

4 Answers  


How we can findout Memoryleaks, In what way it can be avoided

6 Answers   Infosys,


what is the meaning of constant FILE EXCEEDS LENGTH LIMIT while loading from ps file to vsam in the jcl?

0 Answers  






Categories