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.
Header File | Afxwin.h |
Platforms | |
Versions | 1.0 and later |
Complete documentation | Visual C++ documentation |
MFC for Windows CE supports the following member functions of the CDC class differently than the standard MFC library.
The following member functions do not do anything in Windows CE. They are included for compatibility with existing MFC code.
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 |
CDC Member Functions, CDC Data Members, Graphical Drawing Classes, CPaintDC, CWindowDC, CClientDC