Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. CFileDialog is not refreshing

CFileDialog is not refreshing

Scheduled Pinned Locked Moved C / C++ / MFC
helpannouncementcom
5 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Dansveen
    wrote on last edited by
    #1

    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

    C 1 Reply Last reply
    0
    • D Dansveen

      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

      C Offline
      C Offline
      chaau
      wrote on last edited by
      #2

      What value are you passing in szMask?

      D 1 Reply Last reply
      0
      • C chaau

        What value are you passing in szMask?

        D Offline
        D Offline
        Dansveen
        wrote on last edited by
        #3

        Hi I'm using default All files (*.*)

        C 1 Reply Last reply
        0
        • D Dansveen

          Hi I'm using default All files (*.*)

          C Offline
          C Offline
          chaau
          wrote on last edited by
          #4

          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

          D 1 Reply Last reply
          0
          • C chaau

            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

            D Offline
            D Offline
            Dansveen
            wrote on last edited by
            #5

            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.

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups