SystemClick
SystemClick
Process mouseDown occurring in a system window 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.
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:
if ( theEvent.what == mouseDown ) {
switch ( FindWindow( theEvent.where, & whichWindow ) ) { /* check for mouseDown events in other areas */
case inSysWindow:
break;
case inContent:
/*... etc ... */
}
}
}