Public Member Functions

IOffScreenBuf Class Reference

This reference page is linked to from the following overview topics: Methods and Classes of Custom Controls.


Search for all occurrences

Detailed Description

See also:
Custom Controls.

Description:
This control provides an off screen buffer which the developer may draw into, then quickly blit onto the actual display for flicker free image updates.

To initialize the pointer to the control call:

#include <custcont.h>

Inheritance diagram for IOffScreenBuf:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual  ~IOffScreenBuf ()
virtual HDC  GetDC ()=0
virtual void  Erase (Rect *rct=NULL)=0
virtual void  Blit (Rect *rct=NULL)=0
virtual void  Resize ()=0
virtual void  SetBkColor (COLORREF color)=0
virtual COLORREF  GetBkColor ()=0

Constructor & Destructor Documentation

virtual ~IOffScreenBuf ( ) [inline, virtual]
Remarks:
Destructor.
{;}

Member Function Documentation

virtual HDC GetDC ( ) [pure virtual]
Remarks:
Returns a handle to the display device context (DC) for the off screen buffer. The display device context can be used in subsequent GDI functions to draw in the buffer.
virtual void Erase ( Rect rct = NULL ) [pure virtual]
Remarks:
This method is used to erase the buffer.
Parameters:
Rect *rct=NULL

Specifies the rectangular region to erase. If NULL the entire buffer is erased.
virtual void Blit ( Rect rct = NULL ) [pure virtual]
Remarks:
This method blits (transfers the image from) the buffer to the display.
Parameters:
Rect *rct=NULL

Specifies the rectangular region to blit. If NULL the entire buffer is blitted.
virtual void Resize ( ) [pure virtual]
Remarks:
This method is used to resize the buffer.
virtual void SetBkColor ( COLORREF  color ) [pure virtual]
Remarks:
This sets the buffer to the specified color.
Parameters:
COLORREF color

The color to set. You may use the RGB macro to set the color.
virtual COLORREF GetBkColor ( ) [pure virtual]
Remarks:
This methods retrieves the background color of the buffer.
Returns:
The background color of the buffer.

IOffScreenBuf IOffScreenBuf IOffScreenBuf IOffScreenBuf IOffScreenBuf IOffScreenBuf IOffScreenBuf IOffScreenBuf IOffScreenBuf IOffScreenBuf
IOffScreenBuf IOffScreenBuf IOffScreenBuf IOffScreenBuf IOffScreenBuf IOffScreenBuf IOffScreenBuf IOffScreenBuf IOffScreenBuf IOffScreenBuf