
NPN_GetValue
Allows the plug-in to query the browser for information.
Syntax
Parameters
This function has the following parameters:
Returns
- If successful, the function returns NPERR_NO_ERROR.
- If unsuccessful, the plug-in is not loaded and the function returns an error code. For possible values, see Error Codes.
Description
NPN_GetValue returns the browser information set with NPN_SetValue. The queried information is returned in the value parameter.
The method returns a value of type HWND. In many cases, a plug-in may still have to create its own window (a transparent child window of the browser window) to act as the owner window for popup menus and modal dialogs. This transparent child window can have its own WindowProc within which the plug-in can deal with WM_COMMAND messages sent to it a result of tracking the popup menu or modal dialog.
Unix
The values for this parameter are the NPNVxDisplay (the current Display) and the NPNVxtAppContext (the browser's XtAppContext). §
MS Windows
You can use this method to help create a menu or dialog box for a windowless plug-in. In order to bring up popup menus and modal dialogs, a plug-in needs a parent window. A windowless plug-in does not receive its own native window. Instead, it draws directly into the drawable given to it. Use the NPNVnetscapeWindow value to get the native window on which plug-in drawing occurs. §
See Also
NPN_SetValue, NPP_GetValue, NPN_SetValue
|
Netscape Communications http://developer.netscape.com |
