CFileDialog is not refreshing
-
Hi all I created a Activex, when you click a button in Activex opens a FileDialog but when I click on treeview with folders list the list files screen is not update. I started with C:\ folder, even I change folders in treeview or press F5 nothing happens. I'm using Windows 7 and this problem just happen inside a ActiveX and IE9. In the older version this just not happen and the code is the same. Here is the code: CFileDialog dlg(TRUE, szMask, szPath, OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT, aux, NULL, 0, TRUE); dlg.m_ofn.lpstrInitialDir = initialDir; if (dlg.DoModal() != IDOK) { return; } Anyone can help me. Thank you
-
Hi all I created a Activex, when you click a button in Activex opens a FileDialog but when I click on treeview with folders list the list files screen is not update. I started with C:\ folder, even I change folders in treeview or press F5 nothing happens. I'm using Windows 7 and this problem just happen inside a ActiveX and IE9. In the older version this just not happen and the code is the same. Here is the code: CFileDialog dlg(TRUE, szMask, szPath, OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT, aux, NULL, 0, TRUE); dlg.m_ofn.lpstrInitialDir = initialDir; if (dlg.DoModal() != IDOK) { return; } Anyone can help me. Thank you
-
I think in this case you should pass NULL. Please note that you need to pass only extension, e.g. for Excel files you would pass _T("xls"). For all files, pass NULL in place of szMask
Thank you But my problem is not with mask, when I use my activex component inside IE9, when I click on treeview with folder names the screen where show files are not refreshing, my initial dir is C:\ but if I click in e.g D:\ nothing is showed, the screen stays in C:\. This just happen with activex in browser. I could check if set to FALSE the last parameter in CFileDialog constructor is working in both cases, in my application and browser, this parameter set Vista Style dialog, but is not a acceptable solution.