SystemClick
SystemClick Process mouseDown occurring in a system window
#include <Desk.h> Desk Manager
void SystemClick( theEvent, theWindow );
EventRecord *theEvent ; as used in previous GetNextEvent
WindowPtr theWindow ; as obtained via FindWindow
Call SystemClick to take control when the mouse is clicked in a system
window (i.e., a DA window).
theEvent is the address of a 16-byte EventRecord structure; it normally
contains the data obtained from a recent call to GetNextEvent.
theWindow identifies the window in which the mouseDown occurred. It is
normally the value obtained from a call to FindWindow that yielded
a return code of inSysWindow.
Returns: none

Notes: SystemClick takes control and process all events associated with a click
in a non-application window; e.g., events meant to be seen by DAs.
A typical usage might look like:
EventRecord theEvent;
WindowPtr whichWindow;
if(WaitNextEvent(everyEvent, & theEvent, 0, nil)) {
if ( theEvent.what == mouseDown ) {
switch ( FindWindow( theEvent.where, & whichWindow ) ) {
/* check for mouseDown events in other areas */
case inSysWindow:
SystemClick( & theEvent, whichWindow );
break;
case inContent:
/*... etc ... */
}
}
}