Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

Does the application have more than one object? If Yes, Briefly explain.

2 Answers   Soltius Infotech,


What function is used to disable a control at runtime?

7 Answers  


how does the UIThread and worker thread communicates and handle events

2 Answers   HCL,


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

6 Answers   Infosys,


What is CSingleDocTemplate?

1 Answers  


In MFC By Using Communication Between Dialog Boxes,How Can We Send Message Of one Dialog Box To Another Dialog.?

3 Answers   Financial Technologies,


what is the difference between compiling and building?

1 Answers  


What is LPCTSTR? What does LP denote it?

4 Answers  


Explain Doc/View architecture

6 Answers   Huawei,


How many types of combo box are their

2 Answers   Aaditya Info Solutions, E Logic,


How to update all the views whenver document got updated ?

1 Answers  


Do you have an idea about MFC?

0 Answers   C DAC, CDAC,


Categories