Check-box Radio-button

BsEtZeOpLhD Messages postés 61 Date d'inscription dimanche 22 décembre 2002 Statut Membre Dernière intervention 29 juin 2005 - 1 févr. 2003 à 18:10
Fuckly94 Messages postés 32 Date d'inscription jeudi 12 juin 2003 Statut Membre Dernière intervention 12 avril 2006 - 22 janv. 2005 à 08:47
Salut.
Je suis un débutant en api windows et j'aimerai savoir comment on utilise les Check-box et le Radio-button.
J'utilise VC++.
Merci.

1 réponse

Fuckly94 Messages postés 32 Date d'inscription jeudi 12 juin 2003 Statut Membre Dernière intervention 12 avril 2006
22 janv. 2005 à 08:47
yes salu,je c sa fait 2 ans ta posées ta question,mais mieux vaut tard que jamais. pour créer un CheckBox ou une RadioButton,il te faut créer un bouton normal.

CreateWindowEx(0,"BUTTON","TST",WS_CHILD|WS_VISIBLE,0,0,100,100,HwndMain,NULL,NULL,NULL);

ensuite si tu a MSDN,tu pourra lire dans laide,qu'il faut rajouté dans dwstyle soit:
-BS_CHECKBOX
-BS_RADIOBUTTON

c les plus transparent aprés j'ai pa cherché.
par example o finale tu a:
CreateWindowEx(WS_EX_CLIENTEDGE,"BUTTON","TST",WS_CHILD|WS_VISIBLE|BS_CHECKBOX,0,0,100,100,HwndMain,NULL,NULL,NULL);

voila jespér ta compri jsui pa trés clair mais bon.TCHAO

ZO JA KONET
0
Rejoignez-nous