Radio, check-box & combo-box

Bloock Messages postés 74 Date d'inscription mercredi 21 janvier 2004 Statut Membre Dernière intervention 9 avril 2005 - 12 sept. 2004 à 11:35
BruNews Messages postés 21040 Date d'inscription jeudi 23 janvier 2003 Statut Modérateur Dernière intervention 21 août 2019 - 12 sept. 2004 à 13:20
Slt,

J'aimerais savoir comment créé une check-box, radio et combo-box.

J'ai cherché sur des sites ( 2 ), et y mettaient seulement leurs commande ( ex : comment faire que ce soit cocher au début, ... ).

J'ai essayé :

#define ID_RADIO1 001

...

HWND Radio1;

...

Radio1=CreateWindowEx(NULL,
"RADIO",
NULL,
WS_VISIBLE|WS_CHILD,
20,20,
100,20,
hwnd,
(HMENU) ID_RADIO1,
hThisInstance,
NULL
);

...

UpdateWindow(Radio1);

Compiled successfully.

Mais quand je lance mon application, le radio s'affiche pas.

Sinon, pour check-box et combo-box, je savais pas quoi mettre. ( ... à la place de "RADIO" sur mon exemple ).

Merci beaucoup d'avance :)

@+

1 réponse

BruNews Messages postés 21040 Date d'inscription jeudi 23 janvier 2003 Statut Modérateur Dernière intervention 21 août 2019
12 sept. 2004 à 13:20
y a qu'un site ou faut regarder car complet, c'est MSDN:
http://www.msdn.microsoft.com/library/default.asp

Exemples et explics dans Petzold:
http://brunews.free.fr/brunews/download/CP5.zip
http://brunews.free.fr/brunews/download/CP5Sources.zip

ciao...
BruNews, Admin CS, MVP VC++
0
Rejoignez-nous