VpeCenterPreview

<< Click to Display Table of Contents >>

Navigation:  Management Functions >

VpeCenterPreview

Previous pageReturn to chapter overviewNext page

[Windows platform only]

The preview-window is centered in the middle of the parent window or desktop.

void VpeCenterPreview(

VpeHandle hDoc,

int width,

int height,

HWND parent_window

)

VpeHandle hDoc

Document Handle

int width, height

the width and height of the preview window in pixels, they can take the following special values:

Value

Description

Width

1: the preview's width is kept

Height

1: the preview's height is kept

Width

2: the preview's width is set to the width of the parent window (or desktop)

Height

2: the preview's height is set to the height of the parent window (or desktop)

HWND parent_window

a window, which will be used as reference. If it is NULL (0), the preview is centered on the desktop (screen)