###User Defined Function###
_GUICtrlButton_GetState

###Description###
Determines the state of a button or check box

###Syntax###
#include <GuiButton.au3>
_GUICtrlButton_GetState ( $hWnd )


###Parameters###
@@ParamTable@@
$hWnd
	Control ID/Handle to the control
@@End@@

###ReturnValue###
Returns the current state of the button. This can be a combination of the following values, which can be retrieved using BitAND:
	$BST_CHECKED - Indicates the button is checked.
	$BST_FOCUS - Specifies the focus state. A nonzero value indicates that the button has the keyboard focus.
	$BST_INDETERMINATE - Indicates the button is grayed because the state of the button is indeterminate.
		This value applies only if the button has the $BS_3STATE or $BS_AUTO3STATE style.
	$BST_PUSHED - Specifies the highlight state. A nonzero value indicates that the button is highlighted.
		A button is automatically highlighted when the user positions the cursor over it and presses and holds the left mouse button.
		The highlighting is removed when the user releases the mouse button.
	$BST_UNCHECKED - Indicates the button is cleared. Same as a return value of zero.


###Remarks###
None.


###Related###
_GUICtrlButton_SetState, _GUICtrlButton_GetCheck, _GUICtrlButton_SetCheck


###See Also###
@@MsdnLink@@ BM_GETSTATE


###Example###
@@IncludeExample@@
