Bonjour, Comment fait-on pour recuperer l'etat d'un bouton ( enfoncer ou pas enfoncer ) et comment fait-on pr le garder enfoncer ?
tout ceci ds un context de selection.
Merci.
Bonjour, Comment fait-on pour recuperer l'etat d'un bouton ( enfoncer ou pas enfoncer ) et comment fait-on pr le garder enfoncer ?
tout ceci ds un context de selection.
Merci.
Code : Sélectionner tout - Visualiser dans une fenêtre à part TonBouton.GetCheck()
et pour lelaisser enfoncéCButton::GetCheck
int GetCheck( ) const;
Return Value
The return value from a button control created with the BS_AUTOCHECKBOX, BS_AUTORADIOBUTTON, BS_AUTO3STATE, BS_CHECKBOX, BS_RADIOBUTTON, or BS_3STATE style is one of the following values:
Value Meaning
0 Button state is unchecked.
1 Button state is checked.
2 Button state is indeterminate (applies only if the button has the BS_3STATE or BS_AUTO3STATE style).
If the button has any other style, the return value is 0.
Remarks
Retrieves the check state of a radio button or check box.
Code : Sélectionner tout - Visualiser dans une fenêtre à part void SetCheck(1);
Partager