VAPIMWP_VIEW_GETGRIDLINES
Gets the gridlines state of the document. This is a parameter of the VAPIM_VIEW
message.
Syntax
#include <kvvapi.h> SendMessage(hWndVAPI, VAPIM_VIEW, VAPIMWP_VIEW_GETGRIDLINES, (LPARAM) (BOOL*) lpbGridlines );
Arguments
Argument | Description |
---|---|
hWndVAPI
|
The handle of the VAPI window. |
lpbGridlines
|
A pointer to a flag that returns TRUE or FALSE , depending on whether the document has gridlines set. |
Returns
SendMessage()
returnsTRUE
if the call succeeds, in which caselpbGridlines
returnsTRUE
orFALSE
.SendMessage()
returnsFALSE
if the call fails (for example, if there are invalid arguments or if no document is open), in which caselpbGridlines
is undefined.
Discussion
Use this message to set the state of a Toggle Gridlines menu item or toolbar button.