|
Public Member Functions |
| ErrCode | Create (int32 nType, int32 nWidth, int32 nHeight, HANDLE hWnd) |
| | Creates the Graphic Context.
|
| ErrCode | Destroy (void) |
| | Destroys the Graphic Context.
|
| ErrCode | DrawDib (const HDib &dib, const HPoint &ptOrg, HRect const *prSrc=NULL) |
| | Draws the DIB within a Graphic Context (GC).
|
| ErrCode | DrawDib (const HDib &dib, const HRect &rDraw) |
| | Draws a DIB within the Graphic Context (GC).
|
| ErrCode | DrawLine (int32 nXFrom, int32 nYFrom, int32 nXTo, int32 nYTo) const |
| | Draws a line with the foreground color.
|
| ErrCode | DrawLine (const HPoint &ptFrom, const HPoint &ptTo) const |
| | Draws a line with the foreground color.
|
| ErrCode | DrawRect (int32 nX, int32 nY, int32 nXDim, int32 nYDim) const |
| | Frames a rectangle with the foreground color.
|
| ErrCode | DrawRect (const HRect &rDraw) const |
| | Draws a rectangle with the foreground color.
|
| ErrCode | DrawText (const HRect &rText, StringPtr pstr) |
| | Draws a text string in the current font.
|
| ErrCode | FillRect (int32 nX, int32 nY, int32 nXDim, int32 nYDim) const |
| | Fills a rectangle with the foreground color.
|
| ErrCode | FillRect (const HRect &rFill) const |
| | Fills a rectangle with the foreground color.
|
| GC * | Get (void) const |
| | Returns a ptr to the underlying GC.
|
| int32 | GetFontSize (void) const |
| | Gets the font size.
|
| ErrCode | SetBackColor (COLOR clrBG) const |
| | Sets the background color.
|
| ErrCode | SetClipRect (const HRect &rClip) const |
| | Sets the clip rectangle.
|
| ErrCode | SetColors (COLOR clrBG, COLOR clrFG, uint32 uTrans=~0) |
| | Sets the background and foreground colors simultaneously.
|
| ErrCode | SetFont (HFont &font, uint32 uSize=0, uint32 uFlags=0, uint32 uTrans=1) const |
| | Sets the font.
|
| ErrCode | SetFontFlags (int32 nFlags) |
| | Sets the font flags.
|
| ErrCode | SetFontSize (int32 nSize) |
| | Sets the font size.
|
| ErrCode | SetForeColor (COLOR clrFG) const |
| | Sets the foreground color.
|
| bool | IsValid (void) const |
| | Evaluates the validity of the GC.
|
|
| operator GC * () const |
Protected Attributes |
|
GC * | m_pGC |
| | Ptr to underlying GC structure.
|
|
int32 | m_nFontSize |
| | Font size.
|