
April 7th, 2003, 10:13 AM
|
|
Junior Member
|
|
Join Date: Apr 2003
Location: Bucharest, Romania
Posts: 1
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
MFC question about CDialogs
I am using some dialogs in my program and on one of them I have a combo box. I'd like to add some strings to the combo box.
I have done that using the OnInitDialog() function of my class which is inherited from CDialog.
My question is: can I enter this information into the combo box just once (let's say when the program starts) and make the particular dialog know that it should use that combobox (every time it is created).
The data in the combo box will not change during the program (so that's why I am asking this question).
I am just learning MFC for a couple of days, so any detailed answer would be most welcome.
Thanks!
|