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 a message map, and what is the advantage of a message map over virtual functions?

1 Answers  


What is the difference between Synchronous sockets and asynchronous sockets?

2 Answers  


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

2 Answers  


is there any class which is not derived from Cobject

11 Answers   Patni,


What are the differences between MFC Exception macros and C++ exception keywords?

2 Answers  


What is the use of OninitDialog ?

11 Answers   HCL, Nagarro,


what is the updated verssion in vc++

3 Answers   Aspect,


What is document-view architecture ? Give me one real time example for SDI ?

2 Answers  


Explain the flow of SDI application?

8 Answers   Mphasis,


What is LPCTSTR? What does LP denote it?

4 Answers  


How can update edit control data of an executing application from other application?

3 Answers   HP,


How do I create a dialog box in mfc?

1 Answers  


Categories