Code:
SelectObject(memhdc, hbball);
Change that memhdc to winhdc and see what happens.