Sunday, 15 February 2015

c++ - How to add strings to the combo box in MFC -


I am working on MFC and I want to add a string in the combo box. Unlike adding data to (hard coding in the properties of the combo box in the resource view), I want to add them to the string table and to load the string in my C + code.

Please suggest

  - Add combo box in your dialog control - Adding member variable of right click combo box, goto class wizard and type ccablockbox [control varable] - this will add DDX_Control entry - Now call variable_name.AddString in order to add your combo box in sequence. - If you want to use strings from the string table, then use Loadstring to load the first string table from the string table. - Then call the variable variable_name.AddString ... .... have you cleaned your doubts ???  

No comments:

Post a Comment