Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


Difference between Cclint DC & Cpaint Dc

Answers were Sorted based on User's Feedback



Difference between Cclint DC & Cpaint Dc..

Answer / s.subashselvan

CClientDC will paint only the client area of the window and
it will work any message handler.
CPaintDC will paint only the client area of the window but
it only work on OnPaint message Handler only.

Is This Answer Correct ?    26 Yes 2 No

Difference between Cclint DC & Cpaint Dc..

Answer / susinderan

Both draws only window's client Area
-----------------
CClienDC()
-----------------
(i) constructor calls GetDc()
(ii) Destructor calls Release()
(iii) Will not remove WM_PAINT msg
(iv) Should not be used inside onPaint().
can be used outside onPaint()

-----------------
CPaintDC()
-----------------
(i) constructor calls BeginPaint()
(ii) Destructor calls EndPaint()
(iii) Will remove WM_PAINT msg
(iv) Should be used only inside onPaint()

Is This Answer Correct ?    5 Yes 0 No

Difference between Cclint DC & Cpaint Dc..

Answer / narendra

CPaintDC For drawing in a window's client area (OnPaint
handlers only)
CClientDC For drawing in a window's client area (anywhere
but OnPaint)

Is This Answer Correct ?    7 Yes 3 No

Difference between Cclint DC & Cpaint Dc..

Answer / swati

Cpaintdc can be used for only onpaint handler while
cclientdc can be used to paint in client area bt can use any
handlers like ondraw,onpaint
cwindow can be used to paint in whole window
cmetafile is used to store seq of files as physical output.

Is This Answer Correct ?    3 Yes 0 No

Difference between Cclint DC & Cpaint Dc..

Answer / rahul susar

"CPaintDC" For drawing in a window's client area (OnPaint
handlers only)
"CClientDC" For drawing in a window's client area (anywhere
but OnPaint)
"CWindowDC" For drawing anywhere in a window, including the
nonclient area
"CMetaFileDC" For drawing to a GDI metafile

Is This Answer Correct ?    0 Yes 3 No

Difference between Cclint DC & Cpaint Dc..

Answer / pnnr

CClientDC will paint only the client area of the window
CPaintDC will paint the whole window area including the
client area and non client area (Menu's , toolbar's etc..)

Is This Answer Correct ?    9 Yes 17 No

Post New Answer

More MFC Interview Questions

How we call a dialog in another dialog?

2 Answers  


Explain in sort What is CTargetObject?

2 Answers  


2.create for 10 batch: Employee_Number Employee_name Employee_Dateofjoining Employee_address Employee_salary 1.select the employee name who deriving more than 10 thousand salary and joined before august 08. use structure and pointers

0 Answers   TCS,


Tell me the work of HTREDUCE and HTZOOM

1 Answers   E Logic,


What is the difference between hinsrtance and hprevinstance in WinMain function?

3 Answers  






What is the size of class

18 Answers   Aircom,


If application hangs while SendMessage is waiting for the result, how you handle it?

2 Answers  


what is message loop how mfc does it internally?

4 Answers   Aspire,


What are the special requirements for dialog box resources used in a form view?

2 Answers  


What is the difference between workrer thread and UI thread

3 Answers   HCL,


What are the differences between MFC Exception macros and C++ exception keywords?

2 Answers  


Which CPrintInfo member variable must be set for multiple page printouts?

1 Answers  


Categories