| << Click to Display Table of Contents >> VPE_BEFORE_OPEN_FILE |     | 
[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.