The IMAPIControl::GetState method retrieves a value that indicates whether the button control is enabled or disabled.
HRESULT GetState(
ULONG ulFlags,
ULONG FAR * lpulState
);
Service providers implement the IMAPIControl::GetState method to provide MAPI with the state of a button control. If enabled, the button can respond to a mouse click or key press. If disabled, the button appears dimmed and is incapable of responding to a mouse click or key press.
For more information about implementing GetState and the other IMAPIControl methods, see Implementing a Control Object.