GetPenAsyncState 

1.0     2.0     

Gets the state of the pen barrel button.

BOOL GetPenAsyncState( UINT wPDK )

Parameters

wPDK

One of the PDK_ values for the barrel buttons. The following table lists the PDK_ values that GetPenAsyncState can query for:

Constant

Description

PDK_BARREL1

Get state of barrel button 1.

PDK_BARREL2

Get state of barrel button 2.

PDK_BARREL3

Get state of barrel button 3.

 

Return Value

Returns TRUE if the specified barrel button state is currently down; otherwise, the return value is FALSE.