| 636 | } |
| 637 | |
| 638 | void ConfigItem::UpdateCheckBox(int index) { |
| 639 | ASSERT((index >= 0) && (index < m_hsCount)); |
| 640 | m_bCurrentValue = !m_bCurrentValue; |
| 641 | if (m_bCurrentValue) |
| 642 | m_hsList[index]->SetStates(m_tiList[2], m_tiList[3]); // Checked |
| 643 | else |
| 644 | m_hsList[index]->SetStates(m_tiList[0], m_tiList[1]); // Unchecked |
| 645 | |
| 646 | if (m_bCallback) |
| 647 | (*m_bCallback)(m_bCurrentValue); |
| 648 | } |
| 649 | |
| 650 | void ConfigItem::UpdateRadioButton(int index) { |
| 651 | ASSERT((index >= 0) && (index < m_rbCount)); |