[comp.lang.c] basic question

stas@brahms.udel.edu (Stanislaus Pietrucha) (05/13/91)

This is a very basic question:

How can I clear my screen on the Mac (using Think-C)

Thanks in advance.

Jim.Spencer@p510.f22.n282.z1.fidonet.org (Jim Spencer) (05/19/91)

Stanislaus Pietrucha writes in a message to All

SP> How can I clear my screen on the Mac (using Think-C)

You shouldn't be clearing the "screen" on a Mac.  If you really mean this, then its not a "basic" question as you are talking about taking over for the OS.

Assuming that you mean erase the current window then simply EraseRect() passing the current port's portRect.

GrafPtr     thePort;

GetPort(&thePort);
EraseRect(thePort->portRect);
 
 * Origin: White Mailer Test Point (1.0d6) (1:282/22.510)