nav-left cat-right
cat-right
Home > Blog > Programming > C++ > MFC > Set Radio Button at runtime

Set Radio Button at runtime

The following code sets the value of a radio button to checked:

	CButton *pButton = reinterpret_cast<CButton*>(GetDlgItem(IDC_RADIO1));
	pButton->SetCheck(1); // Button is "checked"

Einen Kommentar schreiben

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind markiert *

*


*

Du kannst folgende HTML-Tags benutzen: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">

Spam Protection by WP-SpamFree