LL_CMND_GETVIEWERBUTTONSTATE

Task:

Using this callback, List & Label asks the application about button states of the preview's toolbar buttons.

Activation:

Always activated

Parameters:

HIWORD(lParam) = Tool button ID

LOWORD(lParam) = State defined by List & Label

Return Value (_lResult):

New State

Meaning

0

no change

1

enabled

2

disabled

-1

hidden

Hints:

This function will be called by the preview by List & Label. The IDs of the menu items in List & Label can be found in the file MenuID.txt of your List & Label installation.

Example:

case LL_CMND_GETVIEWERBUTTONSTATE:
   switch (HIWORD(lParam))
   {
      case 112:
         // don't allow one-page print:
         return(-1);
   }
   break;