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...


How to load Bitmap at Dialogbakground in an MFC application?



How to load Bitmap at Dialogbakground in an MFC application?..

Answer / john k gummadi

In OnInitDialog:
-----------------
1. Create CBitmap from the bitmap.
2. Create a memory DC (CDC)
3. Put the CBitmap into the memory DC (Use
CDC::SelectObject function).


In OnPaint:
------------
4. Get your dialog DC (CDialog::GetDC)
5. Do BitBlt or StretchBlt on dialog DC with memory DC as
source DC (this will paint the bitmap on your dialog).
6. Release dialog DC (ReleaseDC function)

Is This Answer Correct ?    13 Yes 0 No

Post New Answer

More Win32API Interview Questions

What is Function entry for DLL in win3.1?

0 Answers  


Explain Win32 Program Execution flow?

0 Answers  


About GDI object?

2 Answers  


In Win32 application can we use CString datatype?

4 Answers  


What are the COM components

2 Answers   SunSoft Technologies,


What is GDI object?

0 Answers  


what are the design patterns of an MFC application

5 Answers   Samsung, SunSoft Technologies,


Message to limit the size of window

3 Answers  


write About send message and post message

4 Answers  


How to load Bitmap at Dialogbakground in an MFC application?

1 Answers   SunSoft Technologies,


Function entry for DLL in win3.1

3 Answers  


what is use of the createWindow object

4 Answers   HCL,


Categories