Click here to Skip to main content
15,888,008 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear Techies,
I ve created a dialog Box(Modeless), and that dialog box consists of various
controls like Combo box, Edit Text, Spin Controls, Radio Buttons, and a
Progress Bar.

Now whenever I select a corresponding item in the first Combo Box, the
associated details of that Items should be automatically filled in the
concerned controls on the Dialog Box.

Well, the details would come from database(SQLite). So how should I proceed for the above mentioned task,pls give some clues.I am still learning MFC.

Thanks & Regards,
Win Techie
Posted
Updated 23-Jun-11 1:39am
v2
Comments
[no name] 23-Jun-11 7:56am    
If you have got some dialogs, then you are able to give to particular dialog pointers to all dialogs using one pointer to table of pointers to dialogs, that will be filled, when all dialogs will be created. In message handler of changing state of control event you will call each dialog method to recalculate all depending values.

1 solution

You need to capture the appropriate notification message[^] and then copy the relevant data from the selected combo box item into your other control(s) via the Data Exchange[^] mechanism.
 
Share this answer
 
Comments
mightytechie 23-Jun-11 7:55am    
thanks Richard , I'll try that.

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