Click here to Skip to main content
15,890,527 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
HI ,
i m using S/w : Visual c++ 6.0 for project
in a resource file i have created dialog box n other control by using control tools directly the problem is that the data inserted in combobox is visible in test run but in exe it is invisible
Posted
Updated 9-Mar-12 8:32am
v2

1 solution

Is this an MFC project, or a plain old win32 one?

I ask, because I'm not aware of any mechanism by which a combo-box may be automatically populated with data from a resource file without the use of MFC.

If there's no MFC, in my understanding, you have to add the items yourself - perhaps in a helper funtion you call in response to the WM_INIT or WM_INITDIALOG messages
 
Share this answer
 
Comments
enhzflep 9-Mar-12 15:17pm    
Ah-hah. Very funny!
No.

Look-up CB_ADDSTRING (And lose the horrible text-speak 'round these parts too, if you don't mind)
PostMessage(hwndCombo, CB_ADDSTRING, NULL, szStringToAdd);

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900