Probléme de compréhension
Bonjour
J'ai besoin de comprendre ce bout de code svp
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13
|
if (m_choice & MVT_RESTIT)
GetDlgItem(IDC_RESTIT)->EnableWindow(true);
if (m_choice & MVT_RESERV)
GetDlgItem(IDC_RESERV)->EnableWindow(true);
if (m_choice & MVT_REPAIR)
GetDlgItem(IDC_REPAIR)->EnableWindow(true);
if (m_choice & MVT_REPAIRED)
GetDlgItem(IDC_REPAIRED)->EnableWindow(true);
if (m_choice & MVT_DELIVER)
GetDlgItem(IDC_DELIVER)->EnableWindow(true);
if (m_choice & MVT_DERESERV)
GetDlgItem(IDC_DERESERV)->EnableWindow(true); |
sachant qu'en entête j'ai
Code:
1 2 3 4 5 6 7
|
#define MVT_RESTIT 1
#define MVT_RESERV 2
#define MVT_REPAIR 4
#define MVT_REPAIRED 8
#define MVT_DELIVER 16
#define MVT_DERESERV 32 |
et que m_choice est un integer qui vaut 3 .
Je ne comprend pas pourquoi les deux premiéres conditions sont vérifiés. Pouvez vous m'expliquer svp