CGraphicsContext Class

class CGraphicsContext

Encapsulates a Windows device context

Defined in: GraphicContext.h

Comments

The CGraphicsContext class is a very thin wrapper around the Device Context concept in Windows GDI, and its API.
Most of this class methods are just inline invocations of the corresponding API functions. The working details of each of those functions are not covered here. Please refer to your Windows Platform SDK documentation for more information.

Class Members

inline CGraphicsContext(HDC h = NULL)

Attach constructor. Attaches the given DC handle to this instance.

inline CGraphicsContext(const CGraphicsContext& rhs)

Copy constructor. Copies the contents of the given CGraphicsContext instance.

virtual ~CGraphicsContext()

CGraphicsContext destructor.

CGraphicsContext& operator=(const CGraphicsContext& rhs)

Assignment operator

HDC operator HDC()

Casting operator.

inline virtual void Attach(HDC h)

Attaches an existing device context handle to this instance of CGraphicsContext.

inline virtual HDC Detach()

Terminates the relationship between this instance of CGraphicsContext and the contained DC handle, without releasing it.

inline virtual bool Delete()

Causes the release of the contained DC handle. The actual release process is executed in ReleaseHandle, which must be implemented by all derived classes. CGraphicsContext instances do not release the DC handle, since they don't create it.

inline virtual bool ReleaseHandle()

Override in derived classes to release the DC handle according to the process followed to create it. ReleaseHandle() is a noop in CGraphicsContext, since there is no creation mehanism associated.

inline CGDIObject<HGDIOBJ> SelectStockObject(int nIndex)

Selects one of Windows stock pens, brushes, fonts or palettes in the device context. Returns a generic CGDIObject containing the correspon- ding object that has been unselected as a result.

_GDIWrapper SelectObject_GDIWrapper& aGDIObject

Select a GDI Object in the device context

_GDIWrapper SelectObject_GDIWrapper* pGDIObject

Override needed to match the MFC Parameter types for SelectObject The different return type is OK and necessary

inline void SetOutputDC(HDC hDC)

Set the value of the Attribute DC Set the Attribute DC

inline void ReleaseAttribDC()

Change the value of the Output DC Set the Output DC

inline void ReleaseAttribDC()

Release the Attribute DC

inline void ReleaseOutputDC()

Release the Output DC

inline bool IsPrinting() const

true if being used for printing

inline bool CreateDC(LPCTSTR lpszDriverName, LPCTSTR lpszDeviceName,LPCTSTR lpszOutput, const void* lpInitData)

Creates a Graphics Context based for the device driver specified

inline bool CreateIC(LPCTSTR lpszDriverName, LPCTSTR lpszDeviceName, LPCTSTR lpszOutput, const void* lpInitData)

Creates an Information Context for print/preview purposes

inline bool CreateCompatibleDC(const CGraphicsContext* aDC)

Creates a DC compatible with the one passed in.

inline bool DeleteDC()

Releases the DC.

inline int SaveDC()

Please refer to the Win32 PlatformSDK

inline bool RestoreDC(int nSavedDC)

Please refer to the Win32 PlatformSDK

inline int GetDeviceCaps(int nIndex) const

Please refer to the Win32 PlatformSDK

inline UINT SetBoundsRect(LPCRECT lpRectBounds, UINT flags)

Please refer to the Win32 PlatformSDK

inline UINT GetBoundsRect(LPRECT lpRectBounds, UINT flags)

Please refer to the Win32 PlatformSDK

inline bool ResetDC(const DEVMODE* lpDevMode)

Please refer to the Win32 PlatformSDK

inline CPoint GetBrushOrg() const

Please refer to the Win32 PlatformSDK

inline CPoint SetBrushOrg(int x, int y)

Please refer to the Win32 PlatformSDK

inline CPoint SetBrushOrg(POINT point)

Please refer to the Win32 PlatformSDK

inline int EnumObjects(int nObjectType,int (CALLBACK* lpfn)(LPVOID, LPARAM), LPARAM lpData)

Please refer to the Win32 PlatformSDK

HDC GetSafeHdc()

Please refer to the Win32 PlatformSDK

inline void StrokeScanPoints()

Please refer to the Win32 PlatformSDK

inline void EndScanPoints()

Please refer to the Win32 PlatformSDK

inline void FillScanPoints()

Please refer to the Win32 PlatformSDK

inline void BeginScanPoints()

Please refer to the Win32 PlatformSDK

inline void AddScanPoint(CPoint pt)

Please refer to the Win32 PlatformSDK

inline COLORREF GetNearestColor(COLORREF crColor) const

Please refer to the Win32 PlatformSDK

inline CGDIPalette SelectPalette(CGDIPalette& aPalette, bool bForceBackground)

Please refer to the Win32 PlatformSDK

inline UINT RealizePalette()

Please refer to the Win32 PlatformSDK

inline void UpdateColors()

Please refer to the Win32 PlatformSDK

inline COLORREF GetBkColor() const

Please refer to the Win32 PlatformSDK

inline int GetBkMode() const

Please refer to the Win32 PlatformSDK

inline int GetPolyFillMode() const

Please refer to the Win32 PlatformSDK

inline int GetROP2() const

Please refer to the Win32 PlatformSDK

inline int GetStretchBltMode() const

Please refer to the Win32 PlatformSDK

inline COLORREF GetTextColor() const

Please refer to the Win32 PlatformSDK

inline COLORREF SetBkColor(COLORREF crColor)

Please refer to the Win32 PlatformSDK todo Add your Intellisense compatible description here

inline int SetBkMode(int nBkMode)

Please refer to the Win32 PlatformSDK

inline int SetPolyFillMode(int nPolyFillMode)

Please refer to the Win32 PlatformSDK

inline int SetROP2(int nDrawMode)

Please refer to the Win32 PlatformSDK

inline int SetStretchBltMode(int nStretchMode)

Please refer to the Win32 PlatformSDK

inline COLORREF SetTextColor(COLORREF crColor)

Please refer to the Win32 PlatformSDK

inline bool GetColorAdjustment(LPCOLORADJUSTMENT lpColorAdjust) const

Please refer to the Win32 PlatformSDK

inline bool SetColorAdjustment(const COLORADJUSTMENT* lpColorAdjust)

Please refer to the Win32 PlatformSDK

inline int GetMapMode() const

Please refer to the Win32 PlatformSDK

inline CPoint GetViewportOrg()

Please refer to the Win32 PlatformSDK

inline int SetMapMode(int nMapMode)

Please refer to the Win32 PlatformSDK

inline CPoint SetViewportOrg(int x, int y)

Please refer to the Win32 PlatformSDK

inline CPoint SetViewportOrg(POINT point)

Please refer to the Win32 PlatformSDK

inline CPoint OffsetViewportOrg(int nWidth, int nHeight)

Please refer to the Win32 PlatformSDK

inline CSize GetViewportExt()

Please refer to the Win32 PlatformSDK

inline CSize SetViewportExt(int cx, int cy)

Please refer to the Win32 PlatformSDK

inline CSize SetViewportExt(SIZE size)

Please refer to the Win32 PlatformSDK

inline CSize ScaleViewportExt(int xNum, int xDenom, int yNum, int yDenom)

Please refer to the Win32 PlatformSDK

inline CPoint GetWindowOrg()

Please refer to the Win32 PlatformSDK

inline CPoint SetWindowOrg(int x, int y)

Please refer to the Win32 PlatformSDK

inline CPoint SetWindowOrg(POINT point)

Please refer to the Win32 PlatformSDK

inline CPoint OffsetWindowOrg(int nWidth, int nHeight)

Please refer to the Win32 PlatformSDK

inline CSize GetWindowExt()

Please refer to the Win32 PlatformSDK

inline CSize SetWindowExt(int cx, int cy)

Please refer to the Win32 PlatformSDK

inline CSize SetWindowExt(SIZE size)

Please refer to the Win32 PlatformSDK

inline CSize ScaleWindowExt(int xNum, int xDenom, int yNum, int yDenom)

Please refer to the Win32 PlatformSDK

inline void DPtoLP(LPPOINT lpPoints, int nCount = 1) const

Please refer to the Win32 PlatformSDK

inline void DPtoLP(LPRECT lpRect) const

Please refer to the Win32 PlatformSDK

inline void DPtoLP(LPSIZE lpSize) const

Please refer to the Win32 PlatformSDK

inline void LPtoDP(LPPOINT lpPoints, int nCount = 1) const

Please refer to the Win32 PlatformSDK

inline void LPtoDP(LPRECT lpRect) const

Please refer to the Win32 PlatformSDK

inline void LPtoDP(LPSIZE lpSize) const

Please refer to the Win32 PlatformSDK

inline void DPtoHIMETRIC(LPSIZE lpSize) const

Please refer to the Win32 PlatformSDK

inline void LPtoHIMETRIC(LPSIZE lpSize) const

Please refer to the Win32 PlatformSDK

inline void HIMETRICtoDP(LPSIZE lpSize) const

Please refer to the Win32 PlatformSDK

inline void HIMETRICtoLP(LPSIZE lpSize) const

Please refer to the Win32 PlatformSDK

inline bool FillRgn(CGDIRgn& aRgn, CGDIBrush& aBrush)

Please refer to the Win32 PlatformSDK

inline bool FrameRgn(CGDIRgn& aRgn, CGDIBrush& aBrush, int nWidth, int nHeight)

Please refer to the Win32 PlatformSDK

inline bool InvertRgn(CGDIRgn& aRgn)

Please refer to the Win32 PlatformSDK

inline bool PaintRgn(CGDIRgn& aRgn)

Please refer to the Win32 PlatformSDK

inline int GetClipBox(LPRECT lpRect) const

Please refer to the Win32 PlatformSDK

inline bool PtVisible(int x, int y) const

Please refer to the Win32 PlatformSDK

inline bool PtVisible(POINT point) const

Please refer to the Win32 PlatformSDK

inline bool RectVisible(LPCRECT lpRect) const

Please refer to the Win32 PlatformSDK

inline int SelectClipRgn(CGDIRgn& aRgn)

Please refer to the Win32 PlatformSDK

inline int ExcludeClipRect(int x1, int y1, int x2, int y2)

Please refer to the Win32 PlatformSDK

inline int ExcludeClipRect(LPCRECT lpRect)

Please refer to the Win32 PlatformSDK

inline int IntersectClipRect(int x1, int y1, int x2, int y2)

Please refer to the Win32 PlatformSDK MODIFIED from CDC

inline int IntersectClipRect(int x1, int y1, int x2, int y2)

Please refer to the Win32 PlatformSDK

inline int IntersectClipRect(LPCRECT lpRect)

Please refer to the Win32 PlatformSDK

inline int OffsetClipRgn(int x, int y)

Please refer to the Win32 PlatformSDK

inline int OffsetClipRgn(SIZE size)

Please refer to the Win32 PlatformSDK

inline CPoint GetCurrentPosition() const

Please refer to the Win32 PlatformSDK

inline CPoint MoveTo(int x, int y)

Please refer to the Win32 PlatformSDK

inline CPoint MoveTo(POINT point)

Please refer to the Win32 PlatformSDK

inline bool LineTo(int x, int y)

Please refer to the Win32 PlatformSDK

inline bool LineTo(POINT point)

Please refer to the Win32 PlatformSDK

inline bool Arc(int x1, int y1, int x2, int y2, int x3, int y3, int x4, int y4)

Please refer to the Win32 PlatformSDK

inline bool Arc(LPCRECT lpRect, POINT ptStart, POINT ptEnd)

Please refer to the Win32 PlatformSDK

inline bool Polyline(LPPOINT lpPoints, int nCount)

Please refer to the Win32 PlatformSDK

inline bool AngleArc(int x, int y, int nRadius, float fStartAngle, float fSweepAngle)

Please refer to the Win32 PlatformSDK

inline bool ArcTo(int x1, int y1, int x2, int y2, int x3, int y3, int x4, int y4)

Please refer to the Win32 PlatformSDK

inline bool ArcTo(LPCRECT lpRect, POINT ptStart, POINT ptEnd)

Please refer to the Win32 PlatformSDK

inline int GetArcDirection() const

Please refer to the Win32 PlatformSDK

inline int SetArcDirection(int nArcDirection)

Please refer to the Win32 PlatformSDK

inline bool PolyDraw(const POINT* lpPoints, const BYTE* lpTypes, int nCount)

Please refer to the Win32 PlatformSDK

inline bool PolylineTo(const POINT* lpPoints, int nCount)

Please refer to the Win32 PlatformSDK

inline bool PolyPolyline(const POINT* lpPoints, const DWORD* lpPolyPoints, int nCount)

Please refer to the Win32 PlatformSDK

inline bool PolyBezier(const POINT* lpPoints, int nCount)

Please refer to the Win32 PlatformSDK

inline bool PolyBezierTo(const POINT* lpPoints, int nCount)

Please refer to the Win32 PlatformSDK

inline void FillRect(LPCRECT lpRect, CGDIBrush* pBrush)

Please refer to the Win32 PlatformSDK

inline void FrameRect(LPCRECT lpRect, CGDIBrush* pBrush)

Please refer to the Win32 PlatformSDK

inline void InvertRect(LPCRECT lpRect)

Please refer to the Win32 PlatformSDK

inline bool DrawIcon(int x, int y, HICON hIcon)

Please refer to the Win32 PlatformSDK

inline bool DrawIcon(POINT point, HICON hIcon)

Please refer to the Win32 PlatformSDK

inline bool DrawState(CPoint pt, CSize size, HBITMAP hBitmap, UINT nFlags,HBRUSH hBrush = NULL)

Please refer to the Win32 PlatformSDK

inline bool DrawState(CPoint pt, CSize size, HICON hIcon, UINT nFlags,HBRUSH hBrush = NULL)

Please refer to the Win32 PlatformSDK

inline bool DrawState(CPoint pt, CSize size, LPCTSTR lpszText, UINT nFlags,bool bPrefixText = TRUE, int nTextLen = 0, HBRUSH hBrush = NULL)

Please refer to the Win32 PlatformSDK

inline bool DrawState(CPoint pt, CSize size, DRAWSTATEPROC lpDrawProc,LPARAM lData, UINT nFlags, HBRUSH hBrush = NULL)

Please refer to the Win32 PlatformSDK

inline bool Chord(LPCRECT lpRect, POINT ptStart, POINT ptEnd)

Please refer to the Win32 PlatformSDK

inline bool Chord(int x1, int y1, int x2, int y2, int x3, int y3, int x4, int y4)

Please refer to the Win32 PlatformSDK

inline void DrawFocusRect(LPCRECT lpRect)

Please refer to the Win32 PlatformSDK

inline bool Ellipse(LPCRECT lpRect)

Please refer to the Win32 PlatformSDK

inline bool Ellipse(int x1, int y1, int x2, int y2)

Please refer to the Win32 PlatformSDK

inline bool Pie(int x1, int y1, int x2, int y2, int x3, int y3, int x4, int y4)

Please refer to the Win32 PlatformSDK

inline bool Pie(LPCRECT lpRect, POINT ptStart, POINT ptEnd)

Please refer to the Win32 PlatformSDK

inline bool Polygon(LPPOINT lpPoints, int nCount)

Please refer to the Win32 PlatformSDK

inline bool PolyPolygon(LPPOINT lpPoints, LPINT lpPolyCounts, int nCount)

Please refer to the Win32 PlatformSDK

inline bool Rectangle(int x1, int y1, int x2, int y2)

Please refer to the Win32 PlatformSDK

inline bool Rectangle(LPCRECT lpRect)

Please refer to the Win32 PlatformSDK

inline bool RoundRect(int x1, int y1, int x2, int y2, int x3, int y3)

Please refer to the Win32 PlatformSDK

inline bool RoundRect(LPCRECT lpRect, POINT point)

Please refer to the Win32 PlatformSDK

inline bool PatBlt(int x, int y, int nWidth, int nHeight, DWORD dwRop)

Please refer to the Win32 PlatformSDK

inline bool BitBlt(int x, int y, int nWidth, int nHeight, CGraphicsContext& aSrcGC, int xSrc, int ySrc, DWORD dwRop)

Please refer to the Win32 PlatformSDK

inline bool StretchBlt(int x, int y, int nWidth, int nHeight, CGraphicsContext& aSrcGC, int xSrc, int ySrc, int nSrcWidth, int nSrcHeight, DWORD dwRop)

Please refer to the Win32 PlatformSDK

inline bool TransparentBlt(int nXOriginDest, int nYOriginDest, int nWidthDest, int hHeightDest, CGraphicsContext& aSrcGC, int nXOriginSrc, int nYOriginSrc, int nWidthSrc, int nHeightSrc, UINT crTransparent)

Please refer to the Win32 PlatformSDK

inline bool TransparentBlt(CRect rcDst, CGraphicsContext& aSrcGC, CRect rcSrc, UINT crTransparent)

Please refer to the Win32 PlatformSDK

inline bool MaskBlt(int x, int y, int nWidth, int nHeight, CGraphicsContext& aSrcGC, int xSrc, int ySrc, CGDIBitmap& aBmpMask, int xMask, int yMask, DWORD dwRop)

Please refer to the Win32 PlatformSDK

inline bool MaskBlt(CRect rcDst, CGraphicsContext& aSrcGC, CPoint ptSrc, CGDIBitmap& aBmpMask, CPoint ptMaskOffset, DWORD dwRop)

Please refer to the Win32 PlatformSDK

inline bool PlgBlt(LPPOINT lpPoint, CGraphicsContext& aSrcGC, int xSrc, int ySrc, int nWidth, int nHeight, CGDIBitmap& aBmpMask, int xMask, int yMask)

Please refer to the Win32 PlatformSDK

inline COLORREF GetPixel(int x, int y) const

Please refer to the Win32 PlatformSDK

inline COLORREF GetPixel(POINT point) const

Please refer to the Win32 PlatformSDK

inline COLORREF SetPixel(int x, int y, COLORREF crColor)

Please refer to the Win32 PlatformSDK

inline COLORREF SetPixel(POINT point, COLORREF crColor)

Please refer to the Win32 PlatformSDK

inline bool FloodFill(int x, int y, COLORREF crColor)

Please refer to the Win32 PlatformSDK

inline bool ExtFloodFill(int x, int y, COLORREF crColor, UINT nFillType)

Please refer to the Win32 PlatformSDK

inline bool SetPixelV(int x, int y, COLORREF crColor)

Please refer to the Win32 PlatformSDK

inline bool SetPixelV(POINT point, COLORREF crColor)

Please refer to the Win32 PlatformSDK

inline bool TextOut(int x, int y, LPCTSTR lpszString, int nCount)

Please refer to the Win32 PlatformSDK

inline bool ExtTextOut(int x, int y, UINT nOptions, LPCRECT lpRect,LPCTSTR lpszString, UINT nCount, LPINT lpDxWidths)

Please refer to the Win32 PlatformSDK

inline CSize TabbedTextOut(int x, int y, LPCTSTR lpszString, int nCount,int nTabPositions, LPINT lpnTabStopPositions, int nTabOrigin)

Please refer to the Win32 PlatformSDK

inline int DrawText(LPCTSTR lpszString, int nCount, LPRECT lpRect, UINT nFormat = 0)

Please refer to the Win32 PlatformSDK

inline int DrawTextEx(LPTSTR lpszString, int nCount, LPRECT lpRect, UINT nFormat = 0, LPDRAWTEXTPARAMS lpDTParams = NULL)

Please refer to the Win32 PlatformSDK

inline CSize GetTextExtent(LPCTSTR lpszString, int nCount) const

Please refer to the Win32 PlatformSDK

inline CSize GetOutputTextExtent(LPCTSTR lpszString, int nCount) const

Please refer to the Win32 PlatformSDK

inline CSize GetTabbedTextExtent(LPCTSTR lpszString, int nCount,int nTabPositions, LPINT lpnTabStopPositions) const

Please refer to the Win32 PlatformSDK

inline CSize GetOutputTabbedTextExtent(LPCTSTR lpszString, int nCount,int nTabPositions, LPINT lpnTabStopPositions) const

Please refer to the Win32 PlatformSDK

inline bool GrayString(CGDIBrush& aBrush, BOOL (CALLBACK* lpfnOutput)(HDC, LPARAM, int), LPARAM lpData,int nCount, int x, int y, int nWidth, int nHeight)

Please refer to the Win32 PlatformSDK

inline UINT GetTextAlign() const

Please refer to the Win32 PlatformSDK

inline UINT SetTextAlign(UINT nFlags)

Please refer to the Win32 PlatformSDK

inline int GetTextFace(int nCount, LPTSTR lpszFacename) const

Please refer to the Win32 PlatformSDK

inline bool GetTextMetrics(LPTEXTMETRIC lpMetrics) const

Please refer to the Win32 PlatformSDK

inline bool GetOutputTextMetrics(LPTEXTMETRIC lpMetrics) const

Please refer to the Win32 PlatformSDK

inline int SetTextJustification(int nBreakExtra, int nBreakCount)

Please refer to the Win32 PlatformSDK

inline int GetTextCharacterExtra() const

Please refer to the Win32 PlatformSDK

inline int SetTextCharacterExtra(int nCharExtra)

Please refer to the Win32 PlatformSDK

inline bool DrawEdge(LPRECT lpRect, UINT nEdge, UINT nFlags)

Please refer to the Win32 PlatformSDK

inline bool DrawFrameControl(LPRECT lpRect, UINT nType, UINT nState)

Please refer to the Win32 PlatformSDK

inline bool ScrollDC(int dx, int dy, LPCRECT lpRectScroll, LPCRECT lpRectClip, CGDIRgn& aRgnUpdate, LPRECT lpRectUpdate)

Please refer to the Win32 PlatformSDK

inline bool GetCharWidth(UINT nFirstChar, UINT nLastChar, LPINT lpBuffer) const

Please refer to the Win32 PlatformSDK

inline bool GetOutputCharWidth(UINT nFirstChar, UINT nLastChar, LPINT lpBuffer) const

Please refer to the Win32 PlatformSDK

inline DWORD SetMapperFlags(DWORD dwFlag)

Please refer to the Win32 PlatformSDK

inline CSize GetAspectRatioFilter() const

Please refer to the Win32 PlatformSDK

inline bool GetCharABCWidths(UINT nFirstChar, UINT nLastChar, LPABC lpabc) const

Please refer to the Win32 PlatformSDK

inline DWORD GetFontData(DWORD dwTable, DWORD dwOffset, LPVOID lpData, DWORD cbData) const

Please refer to the Win32 PlatformSDK

inline int GetKerningPairs(int nPairs, LPKERNINGPAIR lpkrnpair) const

Please refer to the Win32 PlatformSDK

inline UINT GetOutlineTextMetrics(UINT cbData, LPOUTLINETEXTMETRIC lpotm) const

Please refer to the Win32 PlatformSDK

inline DWORD GetGlyphOutline(UINT nChar, UINT nFormat, LPGLYPHMETRICS lpgm,DWORD cbBuffer, LPVOID lpBuffer, const MAT2* lpmat2) const

Please refer to the Win32 PlatformSDK

inline bool GetCharABCWidths(UINT nFirstChar, UINT nLastChar, LPABCFLOAT lpABCF) const

Please refer to the Win32 PlatformSDK

inline bool GetCharWidth(UINT nFirstChar, UINT nLastChar, float* lpFloatBuffer) const

Please refer to the Win32 PlatformSDK

inline int Escape(int nEscape, int nCount,LPCSTR lpszInData, LPVOID lpOutData)

Please refer to the Win32 PlatformSDK

inline int Escape(int nEscape, int nInputSize, LPCSTR lpszInputData,int nOutputSize, LPSTR lpszOutputData)

Please refer to the Win32 PlatformSDK

inline int DrawEscape(int nEscape, int nInputSize, LPCSTR lpszInputData)

Please refer to the Win32 PlatformSDK

inline int StartDoc(LPDOCINFO lpDocInfo)

Please refer to the Win32 PlatformSDK old Win3.0 version

inline int StartDoc(LPDOCINFO lpDocInfo)

Please refer to the Win32 PlatformSDK

inline int StartPage()

Please refer to the Win32 PlatformSDK

inline int EndPage()

Please refer to the Win32 PlatformSDK

inline int SetAbortProc(BOOL (CALLBACK* lpfn)(HDC, int))

Please refer to the Win32 PlatformSDK

inline int AbortDoc()

Please refer to the Win32 PlatformSDK

inline int EndDoc()

Please refer to the Win32 PlatformSDK

inline bool PlayMetaFile(HMETAFILE hMF)

Please refer to the Win32 PlatformSDK

inline bool PlayMetaFile(HENHMETAFILE hEnhMetaFile, LPCRECT lpBounds)

Please refer to the Win32 PlatformSDK

inline bool AddMetaFileComment(UINT nDataSize, const BYTE* pCommentData)

Please refer to the Win32 PlatformSDK

inline bool AbortPath()

Please refer to the Win32 PlatformSDK

inline bool BeginPath()

Please refer to the Win32 PlatformSDK

inline bool CloseFigure()

Please refer to the Win32 PlatformSDK

inline bool EndPath()

Please refer to the Win32 PlatformSDK

inline bool FillPath()

Please refer to the Win32 PlatformSDK

inline bool FlattenPath()

Please refer to the Win32 PlatformSDK

inline bool StrokeAndFillPath()

Please refer to the Win32 PlatformSDK

inline bool StrokePath()

Please refer to the Win32 PlatformSDK

inline bool WidenPath()

Please refer to the Win32 PlatformSDK

inline float GetMiterLimit() const

Please refer to the Win32 PlatformSDK

inline bool SetMiterLimit(float fMiterLimit)

Please refer to the Win32 PlatformSDK

inline int GetPath(LPPOINT lpPoints, LPBYTE lpTypes, int nCount) const

Please refer to the Win32 PlatformSDK

inline bool SelectClipPath(int nMode)

Please refer to the Win32 PlatformSDK

inline void DrawDragRect(LPCRECT pRect, SIZE size, LPCRECT pRectLast, SIZE sizeLast, const CGDIBrush& aBrush = CGDIBrush(), const CGDIBrush& aBrushLast = CGDIBrush())

Please refer to the Win32 PlatformSDK

inline void FillSolidRect(LPCRECT lpRect, COLORREF clr)

Please refer to the Win32 PlatformSDK

inline void FillSolidRect(int x, int y, int cx, int cy, COLORREF clr)

Please refer to the Win32 PlatformSDK

inline void Draw3dRect(LPCRECT lpRect, COLORREF clrTopLeft, COLORREF clrBottomRight)

Please refer to the Win32 PlatformSDK

inline void Draw3dRect(int x, int y, int cx, int cy, COLORREF clrTopLeft, COLORREF clrBottomRight)

Please refer to the Win32 PlatformSDK

inline virtual void AdjustViewport()

Please refer to the Win32 PlatformSDK