List Control with default text
-
Hi, I have created a List Control. I have to add the text by default by which the user can modify the text as required. List control ID :- IDC_EXCLUDE_FILTERS_LIST Type :- CListCtrl Member :- m_EXCLUDE_FILTERS_LIST I have to add the folowing text by default when the Dialog window loads. *.exp *.ilk *.res *.trg *.tlh *.idb *.pdb *.pch *.opt *.lib "*\Deleted Items\*" *.cab *.mov *.mp3 *.swf *.psp *.bmp *.chi *.chm *.com *.dll *.exe *.gif *.hlp *.ivi *.ivt *.ix *.jpeg *.jpg *.msi *.nl.mpeg *.mpg *.ram *.rm Can anyone please tell me how to add the default text to the list box & also user can edit the text and also remove the text.. I dnt know properly that i have to Edit Box or List box. but the text should be multiple lines where the user can edit the text. Regards, Parichay.
-
Hi, I have created a List Control. I have to add the text by default by which the user can modify the text as required. List control ID :- IDC_EXCLUDE_FILTERS_LIST Type :- CListCtrl Member :- m_EXCLUDE_FILTERS_LIST I have to add the folowing text by default when the Dialog window loads. *.exp *.ilk *.res *.trg *.tlh *.idb *.pdb *.pch *.opt *.lib "*\Deleted Items\*" *.cab *.mov *.mp3 *.swf *.psp *.bmp *.chi *.chm *.com *.dll *.exe *.gif *.hlp *.ivi *.ivt *.ix *.jpeg *.jpg *.msi *.nl.mpeg *.mpg *.ram *.rm Can anyone please tell me how to add the default text to the list box & also user can edit the text and also remove the text.. I dnt know properly that i have to Edit Box or List box. but the text should be multiple lines where the user can edit the text. Regards, Parichay.
hai parichay for this u can use combo box instead of list box or edit box where u can enter the list before and u can edit while runtime :)
-
hai parichay for this u can use combo box instead of list box or edit box where u can enter the list before and u can edit while runtime :)
Hi, Thanks for the reply.. But in the Edit box , how to display the text in multiple line ???
-
hai parichay for this u can use combo box instead of list box or edit box where u can enter the list before and u can edit while runtime :)
keerthikaaa i cant use the Combo Box, i can use Edit box or list control or list Box.
-
Hi, Thanks for the reply.. But in the Edit box , how to display the text in multiple line ???
hai parichay to display mutliple lines u can set the property of the edit box as follows in the edit box properties->styles->mutliline checked :)
-
keerthikaaa i cant use the Combo Box, i can use Edit box or list control or list Box.
hai parichay look at this link.it may help u www.codeproject.com/listctrl/listctrldemo.asp
-
hai parichay to display mutliple lines u can set the property of the edit box as follows in the edit box properties->styles->mutliline checked :)
I just create a edit box with m_EDIT member of Type CString also checked multiline and i declared m_EDIT = "*.exp *.ilk *.res *.trg *.tlh *.idb *.pdb *.pch *.opt *.lib "*\Deleted Items\*" *.cab *.mov *.mp3 *"; i am gettling lots of erro that i cant use * etc can u please tell me how to do it? --------------------Configuration: DesktopSearch - Win32 Debug-------------------- Compiling... UpdateDlg.cpp D:\Parichay\DesktopSearch\UpdateDlg.cpp(168) : error C2017: illegal escape sequence D:\Parichay\DesktopSearch\UpdateDlg.cpp(168) : error C2065: 'Deleted' : undeclared identifier D:\Parichay\DesktopSearch\UpdateDlg.cpp(168) : error C2017: illegal escape sequence D:\Parichay\DesktopSearch\UpdateDlg.cpp(168) : error C2296: '*' : illegal, left operand has type 'char [61]' D:\Parichay\DesktopSearch\UpdateDlg.cpp(168) : error C2146: syntax error : missing ';' before identifier 'Items' D:\Parichay\DesktopSearch\UpdateDlg.cpp(168) : error C2065: 'Items' : undeclared identifier D:\Parichay\DesktopSearch\UpdateDlg.cpp(168) : error C2297: '*' : illegal, right operand has type 'char [21]' Error executing cl.exe. DesktopSearch.exe - 7 error(s), 0 warning(s)
-
I just create a edit box with m_EDIT member of Type CString also checked multiline and i declared m_EDIT = "*.exp *.ilk *.res *.trg *.tlh *.idb *.pdb *.pch *.opt *.lib "*\Deleted Items\*" *.cab *.mov *.mp3 *"; i am gettling lots of erro that i cant use * etc can u please tell me how to do it? --------------------Configuration: DesktopSearch - Win32 Debug-------------------- Compiling... UpdateDlg.cpp D:\Parichay\DesktopSearch\UpdateDlg.cpp(168) : error C2017: illegal escape sequence D:\Parichay\DesktopSearch\UpdateDlg.cpp(168) : error C2065: 'Deleted' : undeclared identifier D:\Parichay\DesktopSearch\UpdateDlg.cpp(168) : error C2017: illegal escape sequence D:\Parichay\DesktopSearch\UpdateDlg.cpp(168) : error C2296: '*' : illegal, left operand has type 'char [61]' D:\Parichay\DesktopSearch\UpdateDlg.cpp(168) : error C2146: syntax error : missing ';' before identifier 'Items' D:\Parichay\DesktopSearch\UpdateDlg.cpp(168) : error C2065: 'Items' : undeclared identifier D:\Parichay\DesktopSearch\UpdateDlg.cpp(168) : error C2297: '*' : illegal, right operand has type 'char [21]' Error executing cl.exe. DesktopSearch.exe - 7 error(s), 0 warning(s)
-
Hi, I have created a List Control. I have to add the text by default by which the user can modify the text as required. List control ID :- IDC_EXCLUDE_FILTERS_LIST Type :- CListCtrl Member :- m_EXCLUDE_FILTERS_LIST I have to add the folowing text by default when the Dialog window loads. *.exp *.ilk *.res *.trg *.tlh *.idb *.pdb *.pch *.opt *.lib "*\Deleted Items\*" *.cab *.mov *.mp3 *.swf *.psp *.bmp *.chi *.chm *.com *.dll *.exe *.gif *.hlp *.ivi *.ivt *.ix *.jpeg *.jpg *.msi *.nl.mpeg *.mpg *.ram *.rm Can anyone please tell me how to add the default text to the list box & also user can edit the text and also remove the text.. I dnt know properly that i have to Edit Box or List box. but the text should be multiple lines where the user can edit the text. Regards, Parichay.
parichaybp wrote:
I have created a List Control. I have to add the text by default by which the user can modify the text as required.
I've no idea what you are trying to say here.
parichaybp wrote:
I have to add the folowing text by default when the Dialog window loads.
What do you mean "by default?" What control do you want this text added to? If it's a list control, please explain in more detail as that control can be displayed in many different formats (e.g., report, list, icon).
parichaybp wrote:
Can anyone please tell me how to add the default text to the list box
Now you are using a listbox?
parichaybp wrote:
...also user can edit the text and also remove the text..
Do you need an edit control for this?
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb