This class encapsulates the functionality of a Windows CE 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: | H/PC 2.0, Palm-size PC, H/PC Pro |
| Windows CE versions: | 1.0 and later |
| Complete documentation: | Visual C++ documentation |
MFC for Windows CE supports the following methods of the CDC class differently than the standard MFC:
| CDC::BitBlt | CDC::GetMapMode |
| CDC::DrawEdge | CDC::MaskBlt |
| CDC::DrawText | CDC::Polygon |
| CDC::ExtTextOut | CDC::PolyPolygon |
| CDC::GetDeviceCaps | CDC::SelectStockObject |
| CDC::GetHalftoneBrush | CDC::StretchBlt |
The following methods do not do anything in Windows CE. They are included for compatibility with existing MFC code.
| CDC::DPtoLP | CDC::GetWindowExt |
| CDC::GetViewportExt | CDC::GetWindowOrg |
| CDC::GetViewportOrg | CDC::LPtoDP |
MFC for Windows CE does not support the following methods of the CDC class:
| AbortPath | GetWindow |
| AddMetaFileComment | GrayString |
| AngleArc | HIMETRICtoDP |
| Arc | HIMETRICtoLP |
| ArcTo | InvertRgn |
| BeginPath | LPtoHIMETRIC |
| Chord | OffsetViewportOrg |
| CloseFigure | OffsetWindowOrg |
| CreateDC | PaintRgn |
| CreateIC | Pie |
| DrawEscape | PlayMetaFile |
| DrawState | PlgBlt |
| DPtoHIMETRIC | PolyBezier |
| EndPath | PolyBezierTo |
| EnumObjects | PolyDraw |
| Escape | PtVisible |
| ExtFloodFill | QueryAbort |
| FillPath | ResetDC |
| FillRgn | ScaleViewportExt |
| FlattenPath | ScaleWindowExt |
| FloodFill | SelectClipPath |
| FrameRgn | SetArcDirection |
| GetArcDirection | SetBoundsRect |
| GetAspectRatioFilter | SetColorAdjustment |
| GetBoundsRect | SetMapMode |
| GetCharABCWidths | SetMapperFlags |
| GetCharWidth | SetMiterLimit |
| GetColorAdjustment | SetPixelV |
| GetCurrentPalette | SetPolyFillMode |
| GetFontData | SetStretchBltMode |
| GetGlyphOutline | SetTextAlign |
| GetKerningPairs | SetTextCharacterExtra |
| GetMiterLimit | SetTextJustification |
| GetOutlineTextMetrics | SetViewportOrg |
| GetOutputTabbedTextExtent | SetViewportExt |
| GetOutputCharWidth | SetWindowOrg |
| GetPath | SetWindowExt |
| GetPolyFillMode | StrokeAndFillPath |
| GetTabbedTextExtent | StrokePath |
| GetTextAlign | TabbedTextOut |
| GetTextCharacterExtra | TextOut |
| GetROP2 | UpdateColors |
| GetStretchBltMode | WidenPath |
CPaintDC, CWindowDC, CClientDC, Graphical Drawing Classes