reference:plugins:viewer_plugins:dvp_createviewer

DVP_CreateViewer(
     HWND:hWndParent,
     LPRECT:lpRc,
     DWORD:dwFlags
)
→ HWND

Arguments

hWndParent

This parameter specifies a parent window handle. You must create your image viewer window as a child of the window specified by this handle.

lpRc

This parameter specifies the coordinates that you should use to create your child window, relative to the supplied parent window.

dwFlags

This parameter specifies various flags which describe how your viewer window should behave. The currently defined flags are:

DVPCVF_BorderThis flag is set if your window should be created with a border (it is recommended that you use the WS_EX_CLIENTEDGE extended window style when creating your window if this flag is set)
DVPCVF_PreviewThis flag is set if your viewer is being created for use in the Lister Viewer Pane.
DVPCVF_ReturnTabsIf this flag is set it indicates that information about the Tab key needs to be sent back to the parent window using a NM_KEYDOWN notification message.

Return value

The handle of the viewer window you created (see Image Viewer messages).

Description

The DVP_CreateViewer function is called to create a custom file viewer window.

The DVP_CreateViewer exported function is used by Directory Opus to create your image viewer if you specify the DVPFIF_CanReturnViewer flag for a particular file.