VPE_BEFORE_OPEN_FILE

<< Click to Display Table of Contents >>

Navigation:  Messages Generated by VPE-DLL >

VPE_BEFORE_OPEN_FILE

Previous pageReturn to chapter overviewNext page

[Windows platform only]

Is sent when the user clicked the Open File button in the toolbar (or pushed the corresponding key) and before the open file dialog is shown.

VPE_BEFORE_OPEN_FILE

WPARAM wParam

LPARAM lParam

Parameters:

wParam

unused

lParam

contains the document-handle, so you can determine which document has sent the message

Remarks:

Your application should return:

Value

Description

0

continue operation

1

cancel operation, i.e. do not show the open dialog

 

Cancelling the operation allows you to display your own open dialog and to import or create your own document, for example from a database via a memory stream.

 

See also:

VpeGetOpenFileName