Asynchronous Clipping Functions

BOOL WinWatchNotify(HWINWATCH hWW, WINWATCHNOTIFYPROC
NotifyCallback, LPARAM NotifyParam);

Called to set a notify procedure that will be called whenever the visible region changes.

RETURNS

If NotifyCallback is NULL, no notify will be set up.

void WINWATCHNOTIFYPROC(HWINWATCH hww, HWND hwnd, DWORD code, LPARAM lParam);

Called when a window visible region has changed.

This call also takes the HWINWATCH.

hwnd

The window that has had its region changed.

code

Notify code.

lParam

The value that was passed to WinWatchNotify.

WINWATCHNOTIFY_START

First thing sent to callback.

WINWATCHNOTIFY_STOP

Last thing sent to callback.

WINWATCHNOTIFY_DESTROY

Window has been destroyed.

WINWATCHNOTIFY_CHANGING

Visible region is about to change.

WINWATCHNOTIFY_CHANGED

Visible region has changed.


COMMENTS

It is important to use both WINWATCHNOTIFY_CHANGING and WINWATCHNOTIFY_CHANGED to ensure timely delivery of new Window region information.