Gets the number of pages in a document. This is a parameter of the VAPIM_DRAW message.
#include <kvvapi.h> SendMessage( hWndVAPI, VAPIM_DRAW, VAPIMWP_DRAW_GETPAGECOUNT, (LPARAM) (unsigned int*) pPageCount );
|
Argument |
Description |
|---|---|
|
|
The handle of the VAPI window. |
|
|
A pointer to an |
SendMessage() returns TRUE if the call succeeds, in which case pPageCount returns the number of pages in the document. SendMessage() returns FALSE if the call fails.
bWait member in the TPVAPIOpenDocumentInfo structure set to TRUE. If you do not set bWait to TRUE, the returned page count might not be accurate. |
|