|
-
May 25th, 1999, 11:57 PM
#1
Want ComboBox text to change with Edit box text
I have a dialog box with a combobox and an edit box. What I am trying to do is taht when i change the text in Edit Box , the text of the selected item in Combobox should change simultaneously.For this I have written code fro EN_CHANGE on edit box
void CDlg::OnChangeEdit1()
{
// TODO: Add your control notification handler code here
m_cedit1.GetWindowText(m_vedit1);
m_ccombo1.SetWindowText(m_vedit1);
}
where m_cedit1 and m_ccombo1 are Control strings for the edit and combo box resp. m_vedit1 is value string for edit box. Now what I want is that next time I open thsi dialog box then the value changed in previous session should be in the drop down list of the combobox.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|