ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage   interview questions urls   External Links  Contact Us     Login  |  Sign Up                      
info       Did you received any Funny E-Mails from your Friends and like to share with rest of our friends? Yeah!! you can post that stuff   HERE
Google
 
Categories  >>  Software  >>  Programming Languages  >>  VC++  >>  Win32API
 
 


 

 
 MFC interview questions  MFC Interview Questions
 ATL interview questions  ATL Interview Questions
 COM DCOM interview questions  COM DCOM Interview Questions
 Win32API interview questions  Win32API Interview Questions
 ActiveX interview questions  ActiveX Interview Questions
 VC++ AllOther interview questions  VC++ AllOther Interview Questions
Question
How to load Bitmap at Dialogbakground in an MFC application?
 Question Submitted By :: Satyagmk
I also faced this Question!!     Rank Answer Posted By  
 
  Re: How to load Bitmap at Dialogbakground in an MFC application?
Answer
# 1
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 ?    1 Yes 0 No
John K Gummadi
 

 
 
 
Other Win32API Interview Questions
 
  Question Asked @ Answers
 
what are the design patterns of an MFC application SunSoft-Technologies1
what is the function to repaint a window immediately?  2
write About send message and post message  4
About GDI object?  2
what is the difference between MFC and Win32 Microsoft2
Message to limit the size of window  3
In Win32 application can we use CString datatype?  1
System call executable binary file into a process  2
how to Initialize contents of a dialog?  2
What are the COM components SunSoft-Technologies1
what Message displayed when a window is destroyed  3
what API used to hide window  1
How to load Bitmap at Dialogbakground in an MFC application? SunSoft-Technologies1
win 3.1 supports which type of multi tasking?  2
What is Win32? Wipro5
Function entry for DLL in win3.1  2
In win32 application if defining a variable of CString then it gives the error "CString:Undeclared identifier" how to solve the problem? What headerfile need to include??  1
 
For more Win32API Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com