| Table of Contents | ||
|
|
||
| GetState | ||
|
Purpose Finds the current state of the button |
||
|
Protoype int CButtonMngr::GetState (string str_button) |
||
|
Parameters
|
||
|
Description This function queries the button object passed in with str_button and extract the button's current state. This is a numerical value between 0 and 3 since there are only 4 possible button states (and 2 possible hotspot states). These state values will match with the values you assigned the object when it was created. |
||
|
Use CButtonMngr button; int state = button.GetState("my_button");
|
||
|
|
||
|