« Gecko Plugin API Reference « Browser Side Plug-in API
Summary
Asks the plugin host to immediately (synchronously) repaint invalid areas.
Note: As of Firefox 4, this function no longer has any effect when running with separate plugin processes.
Syntax
#include <npapi.h> void NPN_ForceRedraw(NPP instance);
Parameters
The function has the following parameters:
instance
- Plug-in instance for which the function forces redrawing.
Description
Once a region of a windowless plugin has been invalidated with NPN_InvalidateRect()
or NPN_InvalidateRegion()
, a plug-in can call NPN_ForceRedraw()
to force a paint message. This causes a synchronous update event or paint message for the plug-in. Browsers may ignore this request.