// cdirdraw.h -- Header (Declaration) file for our CDirDraw class.
#include <ddraw.h>
class CDirDraw
{
public:
LPDIRECTDRAW m_pDirectDrawObj; // DirectDraw object
LPDIRECTDRAWSURFACE m_pPrimarySurface, m_pBackBuffer; // DD surfaces
public:
CDirDraw(HWND hWnd); // constructor
~CDirDraw(); // destructor
void ChangeColor(int color); // changes surface color
void DrawLines(); // draws 256 horizontal lines in current palette
};