VAPIM_POSITION
Positions the document in the viewing window.
Syntax
#include <kvvapi.h> SendMessage(hWndVAPI, VAPIM_POSITION, 0L, (LPARAM) (TPVAPIPosition*) lpPosition );
Arguments
Argument |
Description |
---|---|
|
The handle of the VAPI window. |
|
A pointer to a TPVAPIPosition structure that defines the position. |
Returns
SendMessage()
returns TRUE
on success; or FALSE
on error (for example, invalid position).
Discussion
-
You can use this message at any time to position the document within the viewing window. If successful,
lpPosition->first
andlpPosition->last
is set on return. -
If
lpPosition->position
is set to-1
, this message fills in only the first and last values, without changing the current view position. -
If the specified position is not processed when this message is called, Viewing takes exclusive control until the position is encountered. In other words, this message does not return until the desired position is set.
-
For spreadsheets, if the page containing the specified position has not been indexed at the time this message is called, this message returns
FALSE
immediately, and does not wait until the page containing the specified position is indexed.