Mix sugar, corn starch, cocoa, egg yolks, milk, and butter in microwave safe bowl. Put in microwave for 2 minute increments. Pull out of microwave and whisk vigorously and microwave again for 2 minutes. Repeat until thickened.
Add vanilla and whisk.
Pour filling into baked, cooled pie shell. Chill until set. Serve with whipped cream.