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  Contact Us     Login  |  Sign Up                      
tip       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
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
About GDI object?
 Question Submitted By :: Tribhuvan Sharma
I also faced this Question!!     Rank Answer Posted By  
 
  Re: About GDI object?
Answer
# 1
GDI object (is a graphical device object) used to write on a
device context for graphical output. 
GDI objects are: Pen, Brush, Font,Line, Rectangle etc.
These objects are created using their corresponding win32
function. For eg, CreatePen, CreatePenIndirect are used to
create a pen object.
After these objects are created they would need to be
selected to the device context before processing using
"SelectObject" function. 
GDI objects are not associated with any device context
during its creation. SelectObject function does that
assocaition.
Once an object is selected into the device context it would
be available until the object is destroyed through
DeleteObject or the program exits.
 
Is This Answer Correct ?    1 Yes 1 No
Naviyr
 
  Re: About GDI object?
Answer
# 2
GDI(Graphical Device Interface)having the collection of 
Objects(pen,brush,cusror,bitmap..) thats are Interface to 
the Graphics. To handle Grahics Objects we are using the 
HDC (Handle Device Context)In Win32 API.for selecting the 
object we r using the SelectObject(HDC,Object) function. 
and after compleetion For Releasing Object we r  using 
ReleaseObject(HWND,HDC).
 
Is This Answer Correct ?    2 Yes 0 No
Ali Saida Shaik
 
 
 

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

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