Listbox control
-
hi, i have a editbox control in a dialog box. on entering the string in the editbox and clicking the button the string have to be inserted in the listbox of the already opened other dialog box can anybody help?? thanx in advance,
zari
-
hi, i have a editbox control in a dialog box. on entering the string in the editbox and clicking the button the string have to be inserted in the listbox of the already opened other dialog box can anybody help?? thanx in advance,
zari
You may right the interface function for setting the value in the second dialog On the button click of first dialog { Dlg->SetDataToListBox( m_Edit.GetWindowText()); //Where Dlg is the second dialog class object } In the second dialog 2ndDlg::SetDataToListBox( CString EditData ) // SetDataToListBox function the dialog class of the second dialog { m_ListBox.AddString( EditData ); } Rinu Raj
-
hi, i have a editbox control in a dialog box. on entering the string in the editbox and clicking the button the string have to be inserted in the listbox of the already opened other dialog box can anybody help?? thanx in advance,
zari
zareee wrote:
: Re: Listbox control
You can take the text of the edti box on the click of the button using the GetWindowText. For list control you can then use CListCtrl::SetItemText()which Changes the text of a list view item or subitem. BOOL SetItemText( int nItem, int nSubItem, LPCTSTR lpszText );
zareee wrote:
string have to be inserted in the listbox
For List box you can use CListBox::InsertString() / CListBox::AddString()
Somethings seem HARD to do, until we know how to do them. ;-)_AnShUmAn_
-
zareee wrote:
: Re: Listbox control
You can take the text of the edti box on the click of the button using the GetWindowText. For list control you can then use CListCtrl::SetItemText()which Changes the text of a list view item or subitem. BOOL SetItemText( int nItem, int nSubItem, LPCTSTR lpszText );
zareee wrote:
string have to be inserted in the listbox
For List box you can use CListBox::InsertString() / CListBox::AddString()
Somethings seem HARD to do, until we know how to do them. ;-)_AnShUmAn_
I guess zareee can insert text to listbox,right?:)
WhiteSky
-
I guess zareee can insert text to listbox,right?:)
WhiteSky
:zzz: Yes...
Somethings seem HARD to do, until we know how to do them. ;-)_AnShUmAn_