Sets or retrieves a pointer to the event handler function that is called when the onafterprint event is raised.
HRESULT IHTMLWindow3::get_onafterprint(VARIANT *p);HRESULT IHTMLWindow3::put_onafterprint(VARIANT v);
- Pointer to a variable of type VARIANT of type VT_DISPATCH that receives the IDispatch interface of an object with a default method that is invoked when the event occurs.
- VARIANT of type VT_DISPATCH that specifies the IDispatch interface of an object with a default method that is invoked when the event occurs.
Returns S_OK if successful, or an error value otherwise.
This property provides a way to specify a function that can change a document's markup after taking a snapshot for printing. You may want to undo markups to a document that were made for printing such as re-expanding collapsed lists or making hidden elements.