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 does mfc stand for?

0 Answers  


How can i implement the dynamic menus in MFC plz give the code

2 Answers  


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

0 Answers  


What is the difference between Synchronous sockets and asynchronous sockets?

2 Answers  


What is userdefine Messages in MFC?

1 Answers   HCL,






Name the Synchronization objects?

2 Answers  


How can server communicate with more than one client

2 Answers   Invensys,


I can i set size of integer variable should be fixed for different operating systems(Ex i want integer size is 2bytes in OS)

2 Answers   Invensys,


How many types of dialog box are their

10 Answers   Honeywell,


Explain StretchBlt and BitBlt

1 Answers  


1)To Remove WS_MINIMIZEBOX in a Frame ?

1 Answers  


What is the difference between the ASSERT and VERIFY macros?

4 Answers  


Categories