We're looking for a user researcher to understand the needs of developers and designers. Is this you or someone you know? Check out the post: https://mzl.la/2IGzdXS

NPN ForceRedraw

« Gecko Plugin API Reference « Browser Side Plug-in API


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.


#include <npapi.h>
void NPN_ForceRedraw(NPP instance);


The function has the following parameters:

Plug-in instance for which the function forces redrawing.


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.

See also

Document Tags and Contributors

Last updated by: wbamberg,