Click here to Skip to main content
15,909,651 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear Techies,

I am a newbie to MFC,and I've have similar kind of requirement related to Combo box.

1.The Objective is : The selected item(s) from 'X' Combo Box, then its corresponding Items must get on the 'Y' Combo Box.

(Assume that 'X' has internally some a,b,c,d..)if 'X' Combo box is dropped and 'a' is selected , the items under 'a' should be reflected to 'Y',I hope you've understood the objective.

2. And another one is from Transfering Items from One Combo Box to other List Box using the '>>' and '<<' buttons(ie from Right to Left and vice versa).

Pls guide me to accomplish this.

Regards,

MFC Techie.
Posted
Comments
Resmi Anna 15-Jun-11 11:55am    
Are you working with a single application?i mean both the combo are in same application/same dialog??
mightytechie 16-Jun-11 2:37am    
Yes, both the Combo Box Controls are in a single Dialog Box. And I just need to associate two combo boxes.

1 solution

Well, most controls in MFC are CWnd derived, that means that you can SendMessage() or PostMessage() between them if they have one another's handles. Alternatively, if you have a parent CDialog, he can act as the middle man and receive/each other's messages to/from controls.
 
Share this answer
 

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