VAPIMWP_VIEW_CANDECREASEFONT
Determines whether the document font can be decreased. If lpbCanDecreaseFon is TRUE, the font size can be decreased by using VAPIMWP_VIEW_DECREASEFONT . This is a parameter of the VAPIM_VIEW message.
Syntax
#include <kvvapi.h> SendMessage(hWndVAPI, VAPIM_VIEW, VAPIMWP_VIEW_CANDECREASEFONT, (LPARAM) (BOOL*) lpbCanDecreaseFont );
Arguments
| Argument | Description |
|---|---|
hWndVAPI
|
The handle of the VAPI window. |
lpbCanDecreaseFont
|
A pointer to a flag that returns TRUE or FALSE, depending on whether the document font size can be decreased. |
Returns
SendMessage()returnsTRUEif the call succeeds, in which caselpbCanDecreaseFontreturnsTRUEorFALSE.SendMessage()returnsFALSEif the call fails (for example, if there are invalid arguments or if no document is open), in which caselpbCanDecreaseFontis undefined.
Discussion
Use this message to control the state of a Decrease Font menu item or toolbar button.