The example for the moving objects is called MovingPixels:

MovingPixels.h

BOOL CFlickerFreeDemoDlg::OnEraseBkgnd(CDC* pDC)
{
	return FALSE;
}

MovingPixels.cpp

BOOL CFlickerFreeDemoDlg::OnInitDialog()
{
	SetTimer(1, 33, NULL);
...