Click here to Skip to main content
16,004,833 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Passing two dimensional array as parameter?? Pin
tongc22-May-02 3:06
tongc22-May-02 3:06 
GeneralRe: Passing two dimensional array as parameter?? Pin
tongc22-May-02 3:08
tongc22-May-02 3:08 
GeneralRe: Passing two dimensional array as parameter?? Pin
Alexandru Savescu22-May-02 3:04
Alexandru Savescu22-May-02 3:04 
GeneralRe: Passing two dimensional array as parameter?? Pin
tongc22-May-02 3:17
tongc22-May-02 3:17 
GeneralCOleDataSource::DoDragDrop is returning DROPEFFECT_NONE Pin
Abhishek Narula22-May-02 1:33
Abhishek Narula22-May-02 1:33 
GeneralAdding app to Explorer context menu Pin
Brigg Thorp22-May-02 1:24
Brigg Thorp22-May-02 1:24 
GeneralRe: Adding app to Explorer context menu Pin
Sonu Kapoor22-May-02 1:42
Sonu Kapoor22-May-02 1:42 
GeneralList Control Pin
Mazdak22-May-02 1:07
Mazdak22-May-02 1:07 
I have a list control in adialog box and I want to fill one column of it with a CStringList.This is the function that I use to fill list control.

int CSHowFileDlg::FillListCtrl(CStringList * filelist)
{
	LV_COLUMN   listColumn;
	LV_ITEM     listItem;

	listColumn.mask = LVCF_FMT|LVCF_WIDTH|LVCF_TEXT|LVCF_SUBITEM;
	listColumn.fmt = LVCFMT_LEFT;
	listColumn.cx = 120;
	
	listColumn.iSubItem = 1;
	listColumn.pszText = "File Name";
	m_listCtrl.InsertColumn( 1, &listColumn );

	listItem.mask = LVIF_TEXT ;
	listItem.iSubItem = 1;

	POSITION pos = filelist->GetHeadPosition();
	for(short i = 0 ; i < filelist->GetCount() ; i++ )
	{
		listItem.iItem = i;
		listItem.pszText = (LPSTR)(filelist->GetAt((pos++))).GetString();

		m_listCtrl.InsertItem( &listItem );
		

	}
	return 0;
}


There is no error but it show some of items correctly.Does anybody see anything wrong in this function?

Mazy

"The more I search, the more my need
For you,
The more I bless, the more I bleed
For you."The Outlaw Torn-Metallica

GeneralRe: List Control Pin
Mazdak22-May-02 1:52
Mazdak22-May-02 1:52 
GeneralActiveX ToolBar Pin
Tzoockee22-May-02 0:54
Tzoockee22-May-02 0:54 
GeneralMessageBox Problem Pin
chen22-May-02 0:40
chen22-May-02 0:40 
GeneralRe: MessageBox Problem Pin
Joaquín M López Muñoz22-May-02 0:51
Joaquín M López Muñoz22-May-02 0:51 
GeneralRe: MessageBox Problem Pin
Zizilamoroso22-May-02 0:55
Zizilamoroso22-May-02 0:55 
GeneralRe: MessageBox Problem Pin
chen22-May-02 0:57
chen22-May-02 0:57 
GeneralRe: MessageBox Problem Pin
Zizilamoroso22-May-02 2:45
Zizilamoroso22-May-02 2:45 
GeneralRe: MessageBox Problem Pin
Michael P Butler22-May-02 1:20
Michael P Butler22-May-02 1:20 
QuestionPlaying an OGG or MP3 in a demo? Pin
22-May-02 0:38
suss22-May-02 0:38 
AnswerRe: Playing an OGG or MP3 in a demo? Pin
Bug22-May-02 0:52
Bug22-May-02 0:52 
AnswerRe: Playing an OGG or MP3 in a demo? Pin
Mazdak22-May-02 1:13
Mazdak22-May-02 1:13 
AnswerRe: Thx (Playing an OGG or MP3 in a demo?) Pin
22-May-02 5:47
suss22-May-02 5:47 
GeneralMFC Draw Text Pin
22-May-02 0:23
suss22-May-02 0:23 
GeneralRe: MFC Draw Text Pin
Michael P Butler22-May-02 1:23
Michael P Butler22-May-02 1:23 
GeneralGlobalAllocPtr Pin
Zizilamoroso21-May-02 23:57
Zizilamoroso21-May-02 23:57 
GeneralRe: GlobalAllocPtr Pin
Zizilamoroso22-May-02 0:08
Zizilamoroso22-May-02 0:08 
GeneralRe: GlobalAllocPtr Pin
moliate22-May-02 0:23
moliate22-May-02 0:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.