Messages

<< Click to Display Table of Contents >>

Navigation:  Tasks >

Messages

The following message IDs are sent to the parent window as window message  WM_PDF_EVENT (= $0400 + 78)

 

With the VCL component it is possible to use the event OnViewerMessage to trap the events.

 

 

MSGPDF_NEEDPASSWORD     = 100............. Set a new password!

 

MSGPDF_PROBLEMONLOAD    = 101............. We have a problem while loading the file

 

MSGPDF_PROBLEMONDISPLAY = 102............. We have a problem while displaying the file

 

MSGPDF_INITCOMMANDS     = 103............. Set the command offsets (lparam)

 

MSGPDF_CHANGEVIEWPAGE   = 104............. Moved to different page (=wparam)

 

MSGPDF_SETVERSION       = 105............. lparam = version * 1000

 

 

MSGPDF_INTERNEXCEPTION  = 107............. Send exception string

 

MSGPDF_CHANGESELPAGE    = 108............. Moved to different page (=wparam)

 

MSGPDF_MAPFONT          = 109............. Use COMPDF_MAPFONT to change the font

 

MSGPDF_PRINTSTART       = 110............. Param = page count in the printing cue (not the total page count)

 

MSGPDF_PRINTPAGE        = 111............. for each page, LParam = page number in document (see MSGPDF_PRINTPAGEPROGRESS)

 

MSGPDF_PRINTEND         = 112............. done, LParam=0

 

MSGPDF_PRINTPAGEPROGRESS= 116............. Message to set prograsspar. param=position, max=param of MSGPDF_PRINTSTART

 

 

MSGPDF_FIND_START       = 113............. Find process started

 

MSGPDF_FIND_PAGE        = 114............. Find process running. The parameter is the current page number

 

MSGPDF_FIND_END         = 115............. Find process started. The parameter is the found page number

 

 

 MSGPDF_MOVEPages        = 140............. The user dragged selected pages - they should now be moved. Use command COMPDF_MovePages

 

MSGPDF_BEFORE_MOVEPages = 141............. To enable moving the program must set ResultA to 1

 

//GUI Events

 MSGPDF_KEYDOWN           = 201............. l Param = Key, SetResult with

 MSGPDF_KEYPRESS          = 202............. l Param = Key

 MSGPDF_KEYUP             = 203............. l Param = Key

 

 MSGPDF_DblClick          = 204............. Doubleclick

 

 MSGPDF_SetFocus          = 205............. Triggered when internally SetFocus is executed

 

MSGPDF_DrawBackground    = 206; // Draw page background - for example to implement skinning

 

MSGPDF_DRAWOBJECT_GETTEXT= 257; // Get the text for a text draw object. Requires WPViewPDF V4, lparam=current page number