skidracer #1 nononoihdc = CreateCompatibleDC(phdc)the CreateCompatibleBitmap call should also probably be using phdc also