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() returns TRUE if the call succeeds, in which case lpbCanDecreaseFont returns TRUE or FALSE.
  • SendMessage() returns FALSE if the call fails (for example, if there are invalid arguments or if no document is open), in which case lpbCanDecreaseFont is undefined.

Discussion

Use this message to control the state of a Decrease Font menu item or toolbar button.