Problème avec ma CComboBox
Bonjour à tous,
Je développe un programme SmartDevice MFC pour une machine portable tournant sous Windows mobile.
Je créé une variable de type CComboBox, puis je lui ajoute deux string avec AddString(L"");
Lorsque j'exécute mon programme, ma CComboBox est affichée mais pas les String qui j'y ai ajouté.
Voici mon Code :
Code:
1 2 3 4 5
|
CComboBox choice;
choice.Create(WS_CHILD|WS_VISIBLE|WS_VSCROLL|CBS_DROPDOWNLIST, CRect(30, 20, xMax -30, 50), this, 1);
choice.AddString(L"RFID");
choice.AddString(L"SCAN"); |
et un capture du résultat :
http://theowl.fr/images/img.jpg
Une solution ?