CDC

The CDC class encapsulates the functionality of a Windows device-context, which is a GDI-managed structure containing information about the operating modes and current selections of a device, such as a display or printer.

At a Glance

Header File Afxwin.h
Platforms
Versions 1.0 and later
Complete documentation Visual C++ documentation

Remarks

MFC for Windows CE supports the following member functions of the CDC class differently than the standard MFC library.

CDC::BitBlt

CDC::DrawEdge

CDC::DrawText

CDC::ExtTextOut

CDC::GetDeviceCaps

CDC::GetHalftoneBrush

CDC::GetMapMode

CDC::MaskBlt

CDC::Polygon

CDC::PolyPolygon

CDC::SelectStockObject

CDC::StretchBlt

The following member functions do not do anything in Windows CE. They are included for compatibility with existing MFC code.

CDC::DPtoLP

CDC::GetViewportExt

CDC::GetViewportOrg

CDC::GetWindowExt

CDC::GetWindowOrg

CDC::LPtoDP

MFC for Windows CE does not support the following member functions of the CDC class.

AbortDoc HIMETRICtoDP
AbortPath HIMETRICtoLP
AddMetaFileComment InvertRgn
AngleArc IsPrinting
Arc LPtoHIMETRIC
ArcTo OffsetViewportOrg
BeginPath OffsetWindowOrg
Chord PaintRgn
CloseFigure Pie
CreateDC PlayMetaFile
CreateIC PlgBlt
DrawEscape PolyBezier
DrawFrameControl PolyBezierTo
DrawState PolyDraw
DPtoHIMETRIC PtVisible
EndDoc QueryAbort
EndPage RealizePalette
EndPath RectVisible
EnumObjects ResetDC
Escape ScaleViewportExt
ExtFloodFill ScaleWindowExt
FillPath SelectClipPath
FillRgn SelectPalette
FlattenPath SetAbortProc
FloodFill SetArcDirection
FrameRgn SetBoundsRect
GetArcDirection SetColorAdjustment
GetAspectRatioFilter SetMapMode
GetBoundsRect SetMapperFlags
GetCharABCWidths SetMiterLimit
GetCharWidth SetPixelV
GetColorAdjustment SetPolyFillMode
GetCurrentPalette SetROP2
GetFontData SetStretchBltMode
GetGlyphOutline SetTextAlign
GetKerningPairs SetTextCharacterExtra
GetMiterLimit SetTextJustification
GetOutlineTextMetrics SetViewportOrg
GetOutputTabbedTextExtent SetViewportExt
GetOutputCharWidth SetWindowOrg
GetPath SetWindowExt
GetPolyFillMode StartDoc
GetTabbedTextExtent StartPage
GetTextAlign StrokeAndFillPath
GetTextCharacterExtra StrokePath
GetROP2 TabbedTextOut
GetStretchBltMode TextOut
GetWindow UpdateColors
GrayString WidenPath

See Also

CDC Member Functions, CDC Data Members, Graphical Drawing Classes, CPaintDC, CWindowDC, CClientDC