By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,486 Members | 1,716 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,486 IT Pros & Developers. It's quick & easy.

MFC Combo box

P: 2
I'm developing an application using MFC. I'm using Visual Studio 2003 for that. In my application there are two dialog boxes. By click on a menu item in the first dialog box(main dialog) I can connect to the second dialog (Property dialog)box.
I inserted a combo box in my property dialog box. Then I created a object of property dialog class in the main dialog class.
The problem is when I run the program, although the object of the property dialog is created, the main dialog class doesn't identify the combo box of the property dialog class.
I think the reason is, at the moment the object is creating, mapping of the combo box ID and its variable is not happened. (It's happen in the DoDataExchange method in the property dialog class)
Please let me know a way to initialize the combo box variable in the main class.
Thank You
Nov 7 '08 #1
Share this Question
Share on Google+
2 Replies

Expert Mod 5K+
P: 8,916
Each dialog should handle its own controls, the combo box in on the property dialogue so the property dialogue class should be the one handling the combo box and with a data member for it.
Nov 7 '08 #2

P: 2
Dear Banfa,
Thanx lot for your idea. Now I'm changing my code according to it.
Nov 10 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.