Click here to Skip to main content
16,005,206 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Combo box control does not display data list? Pin
dkyue9270818-Jun-07 7:25
dkyue9270818-Jun-07 7:25 
GeneralRe: Combo box control does not display data list? Pin
led mike19-Jun-07 5:12
led mike19-Jun-07 5:12 
AnswerRe: Combo box control does not display data list? Pin
JudyL_MD18-Jun-07 7:04
JudyL_MD18-Jun-07 7:04 
GeneralRe: Combo box control does not display data list? Pin
dkyue9270818-Jun-07 7:41
dkyue9270818-Jun-07 7:41 
AnswerRe: Combo box control does not display data list? Pin
David Crow18-Jun-07 8:37
David Crow18-Jun-07 8:37 
GeneralRe: Combo box control does not display data list? Pin
dkyue9270818-Jun-07 9:45
dkyue9270818-Jun-07 9:45 
GeneralRe: Combo box control does not display data list? Pin
David Crow18-Jun-07 9:52
David Crow18-Jun-07 9:52 
AnswerRe: Combo box control does not display data list? Pin
Iain Clarke, Warrior Programmer19-Jun-07 1:14
Iain Clarke, Warrior Programmer19-Jun-07 1:14 
The items in the data tab are stored as a specific resource type. When a dialog is created using MFC, one of the jobs of CDialog::OnInitDialog is to go looking for this specific resource type, and populate the combo box for you.

It may be in OnCreate (in hindsight I'm pretty sure it is), but that doesn't really change anything here.

As you're not using MFC, no code ever goes looking for the data in the resources to add to your combo box, so it remains empty.

To recap: The data tab in the resource editor is only of use if you're using MFC. You're not.


In your DlgProc for that dialog, you'll need to handle WM_INITDIALOG and add the data there. Whether you hard code the values, read them from string resources, do some digging and write a function to replicate what MFC does is up to you.

Good luck,

Iain.



GeneralRe: Combo box control does not display data list? Pin
dkyue9270819-Jun-07 5:11
dkyue9270819-Jun-07 5:11 
QuestionClient/Server doubt Pin
Demian Panello18-Jun-07 4:31
Demian Panello18-Jun-07 4:31 
AnswerRe: Client/Server doubt Pin
Mark Salsbery18-Jun-07 5:22
Mark Salsbery18-Jun-07 5:22 
GeneralRe: Client/Server doubt Pin
led mike18-Jun-07 5:34
led mike18-Jun-07 5:34 
GeneralRe: Client/Server doubt Pin
Mark Salsbery18-Jun-07 5:37
Mark Salsbery18-Jun-07 5:37 
GeneralRe: Client/Server doubt Pin
Demian Panello18-Jun-07 11:28
Demian Panello18-Jun-07 11:28 
GeneralRe: Client/Server doubt Pin
Mark Salsbery18-Jun-07 11:54
Mark Salsbery18-Jun-07 11:54 
QuestionReset the count of a Semaphore Pin
Ajay L D18-Jun-07 3:23
Ajay L D18-Jun-07 3:23 
AnswerRe: Reset the count of a Semaphore Pin
Roger Stoltz18-Jun-07 3:52
Roger Stoltz18-Jun-07 3:52 
AnswerRe: Reset the count of a Semaphore Pin
Arman S.18-Jun-07 4:11
Arman S.18-Jun-07 4:11 
AnswerRe: Reset the count of a Semaphore Pin
Joe Woodbury18-Jun-07 9:11
professionalJoe Woodbury18-Jun-07 9:11 
QuestionAudio Capture using DirectShow Pin
Maynka18-Jun-07 3:07
Maynka18-Jun-07 3:07 
AnswerRe: Audio Capture using DirectShow Pin
Mark Salsbery18-Jun-07 5:29
Mark Salsbery18-Jun-07 5:29 
QuestionHelp Pin
suntromantralalalala18-Jun-07 2:17
suntromantralalalala18-Jun-07 2:17 
AnswerRe: Help Pin
James R. Twine18-Jun-07 2:26
James R. Twine18-Jun-07 2:26 
AnswerRe: Help Pin
Hamid_RT18-Jun-07 2:30
Hamid_RT18-Jun-07 2:30 
AnswerRe: Help Pin
Mark Salsbery18-Jun-07 5:33
Mark Salsbery18-Jun-07 5:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.