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

What is the initial function to be called in MFC and what it will do

11 Answers   Infosys,


How to handle dynamic menus in mfc? What happens when client calls cocreateinstance?

0 Answers  


Have you ever used win32 APIs ?

4 Answers   Microsoft,


1)why we cant create more than one instance of the class Derived from CWinApp

5 Answers   Alstom,


How to update windows title bar dynamically?

7 Answers   HCL,


How you create a button dynamically?

2 Answers  


List out the parameters of WinMain Function.

2 Answers   Mphasis,


What is the range of intensity of RGB

1 Answers  


How we call a dialog in another dialog?

2 Answers  


What is LoadLibrary function returns?

7 Answers  


What does mfc stand for?

0 Answers  


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

3 Answers  


Categories