reference:plugins:viewer_plugins:dvp_configure

DVP_Configure(
     HWND:hWndParent,
     HWND:hWndNotify,
     DWORD:dwNotifyData
)
→ HWND

Arguments

hWndParent

This parameter specifies the parent window handle for your configuration dialog.

hWndNotify

This parameter contains a window handle that you should use to send notification messages when the user modifies the plugin configuration.

dwNotifyData

This value should be sent as the lParam value of the DVPLUGINMSG_REINITIALIZE message if needed.

Return value

The window handle of the configuration dialog (the dialog should be modeless).

Description

The DVP_Configure function is called to display a configuration dialog for the plugin.

If the DVPFIF_CanConfigure plugin flag is specified, Directory Opus will enable a Configure function for your plugin. This is accessed via the Viewer Plugins option in the standard Settings menu. When the user selects this function, your plugin's DVP_Configure function is called.

The DVP_Configure function should create and display a dialog that allows the user to configure your plugin. The dialog should be modeless - the DVP_Configure function must return the window handle to Directory Opus.

When the user edits your plugin's configuration and clicks the Apply button, you can send Directory Opus a message telling it that any instances of your plugin need to be re-initialized. To do this, post a DVPLUGINMSG_REINITIALIZE message to the window specified by the hWndNotify parameter and pass dwNotifyData as the lParam value of the message. When Directory Opus receives this notification message from you, it will send DVPLUGINMSG_REINITIALIZE messages to any currently open instances of your viewer plugin.

If your plugin does not need to be re-initialized when the configuration is changed, you do not need to send this message.