Click here to Skip to main content
16,008,175 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralMP3 reading Pin
Matt Newman9-Jul-01 11:09
Matt Newman9-Jul-01 11:09 
GeneralRe: MP3 reading Pin
Christian Graus9-Jul-01 12:38
protectorChristian Graus9-Jul-01 12:38 
GeneralRe: MP3 reading Pin
Matt Newman9-Jul-01 15:47
Matt Newman9-Jul-01 15:47 
GeneralRe: MP3 reading Pin
Christian Graus9-Jul-01 15:55
protectorChristian Graus9-Jul-01 15:55 
GeneralRe: MP3 reading Pin
Matt Newman9-Jul-01 16:20
Matt Newman9-Jul-01 16:20 
GeneralAdding items to a Console window System Menu Pin
9-Jul-01 10:37
suss9-Jul-01 10:37 
GeneralRe: Adding items to a Console window System Menu Pin
Tomasz Sowinski9-Jul-01 10:48
Tomasz Sowinski9-Jul-01 10:48 
GeneralAdd Item in a list Control from another dialog Pin
9-Jul-01 10:27
suss9-Jul-01 10:27 
Hi!

In my main frame, I have a list control. There are severals possibilities to add a item in this list control. One of them is from another dialog, this dialog get the informations of any file and send them to the list control.

void CSendFile::m_SendFilePush(void) //Dialog to send a file
{
CListCtrl *CCtrList;
.............
//Informations of the file
v_CFileInfo.itv_sPathName = v_FilePathName;
v_CFileInfo.itv_sFileName = v_FileName;
v_CFileInfo.itv_sExtName = v_ExtFile;

//The code to add item in my lsit control
CCompadApp *pApp = (CCompadApp *)AfxGetApp();
//CCompadDlg has the list control
CCompadDlg *pDlg = (CCompadDlg *)pApp->m_pMainWnd;

CCtrList = (CListCtrl *)GetDlgItem(IDC_LIST_CONTROL);

LVITEM v_ListCtrlItem;
CString v_StringItem;
CString v_FileType;

// Insert the item
v_ListCtrlItem.mask = LVIF_TEXT;
v_StringItem.Format(v_FileName, 0);
v_ListCtrlItem.iItem = 0;
v_ListCtrlItem.iSubItem = 0;
v_ListCtrlItem.pszText = (LPTSTR)(LPCTSTR)(v_StringItem);
v_ListCtrlItem.iImage = NULL;
CCtrList->InsertItem(&v_ListCtrlItem);

EndDialog(v_SendFileDlgID);
}

This compile but there aren't any added item in the list control from CSendFile Dialog.
What is the problem?

Thanks
PS. Excuse me for this english Smile | :)

Endymion
GeneralRe: Add Item in a list Control from another dialog Pin
Carlos Antollini9-Jul-01 10:41
Carlos Antollini9-Jul-01 10:41 
GeneralDebug error: The value of ESP... Pin
Jake Palmer9-Jul-01 10:00
Jake Palmer9-Jul-01 10:00 
GeneralRe: Debug error: The value of ESP... Pin
Chris Losinger9-Jul-01 10:28
professionalChris Losinger9-Jul-01 10:28 
GeneralRe: Debug error: The value of ESP... Pin
Michael Dunn9-Jul-01 11:24
sitebuilderMichael Dunn9-Jul-01 11:24 
GeneralRe: Debug error: The value of ESP... Pin
Frank Deo9-Jul-01 13:02
Frank Deo9-Jul-01 13:02 
GeneralCCeCommandBar Pin
9-Jul-01 9:48
suss9-Jul-01 9:48 
GeneralCALLBACKS and classes Pin
9-Jul-01 9:34
suss9-Jul-01 9:34 
GeneralRe: CALLBACKS and classes Pin
Erik Funkenbusch9-Jul-01 9:40
Erik Funkenbusch9-Jul-01 9:40 
GeneralRe: CALLBACKS and classes Pin
9-Jul-01 9:44
suss9-Jul-01 9:44 
QuestionHow can I know how my propertySheet terminated ? with OK or with CANCLE ? URGENT ! Pin
9-Jul-01 9:26
suss9-Jul-01 9:26 
AnswerRe: How can I know how my propertySheet terminated ? with OK or with CANCLE ? URGENT ! Pin
Tomasz Sowinski9-Jul-01 9:31
Tomasz Sowinski9-Jul-01 9:31 
GeneralThank you very very very much !!!!!!!!!!!! Pin
9-Jul-01 9:41
suss9-Jul-01 9:41 
Generalpointer to the first document in MDI Pin
mr20039-Jul-01 8:43
mr20039-Jul-01 8:43 
GeneralRe: pointer to the first document in MDI Pin
Tomasz Sowinski9-Jul-01 9:35
Tomasz Sowinski9-Jul-01 9:35 
GeneralRe: pointer to the first document in MDI Pin
9-Jul-01 15:29
suss9-Jul-01 15:29 
GeneralRe: pointer to the first document in MDI Pin
Tomasz Sowinski10-Jul-01 0:29
Tomasz Sowinski10-Jul-01 0:29 
QuestionIs it a Variant or Safearray? Pin
Rhoam9-Jul-01 8:23
Rhoam9-Jul-01 8: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.