mfc >> CFileDialog refreshing programatically

by Janiv Ratson » Wed, 26 Jan 2005 23:33:54 GMT

Hello,
I have derived the CFileDialog, named CCustomFileDlg.
I need a special functionality.
I added an "Import" button the the dialog, it opens a regular CFileDialog,
and the user choses a file.
The file is added to the same place where the open directory in my
CCustomFileDlg.
The problem is that I want to select the added file.
I did the following (this code is after the copying process):

CWnd* pWndList = GetParent()->GetDlgItem(lst2);

CListCtrl* pList = (CListCtrl*)(pWndList->GetDlgItem(1));

int iCount = pList->GetItemCount();

I get the number of items before the copy action took place ...



Why?

Thanks,

Janiv Ratson.





Similar Threads

1. refreshing CFileDialog programatically