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 with preview working in Xp but not in Win7

CFileDialog with preview working in Xp but not in Win7

Scheduled Pinned Locked Moved C / C++ / MFC
c++question
6 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.
  • 0 Offline
    0 Offline
    002comp
    wrote on last edited by
    #1

    Hello Friends I am creating a MFC application using VS2010 on WinXP. i am using CFileDialog with Preview functionality while opening a file.It is working Fine in WinXP but in Win7,it is not showing any preview. Do i need to change in MFC header Files? As I Found that,we need to chahnge #define WINVER to 0X501 from 0X00600. But I didnt get any clear result. Any Ideas? Regards Yogesh Sikri

    L 1 Reply Last reply
    0
    • 0 002comp

      Hello Friends I am creating a MFC application using VS2010 on WinXP. i am using CFileDialog with Preview functionality while opening a file.It is working Fine in WinXP but in Win7,it is not showing any preview. Do i need to change in MFC header Files? As I Found that,we need to chahnge #define WINVER to 0X501 from 0X00600. But I didnt get any clear result. Any Ideas? Regards Yogesh Sikri

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Version for Windows 7 is 0x0601, but that will not necessarily fix the problem. I'm also not sure what you mean by Preview in this context (not used MFC for a while).

      0 1 Reply Last reply
      0
      • L Lost User

        Version for Windows 7 is 0x0601, but that will not necessarily fix the problem. I'm also not sure what you mean by Preview in this context (not used MFC for a while).

        0 Offline
        0 Offline
        002comp
        wrote on last edited by
        #3

        I derived class CFileDialog and Customize File Open Dialog by adding Preview option in OpenDialog[flags used OFN_ENABLETEMPLATE]. But this is not working in Win7. I found on net tht we need to use Common File Dialog to Customize open File dialog in Windows7. But there should be way for Existing Applications which is using CFileDialog. Regards Yogesh

        L 1 Reply Last reply
        0
        • 0 002comp

          I derived class CFileDialog and Customize File Open Dialog by adding Preview option in OpenDialog[flags used OFN_ENABLETEMPLATE]. But this is not working in Win7. I found on net tht we need to use Common File Dialog to Customize open File dialog in Windows7. But there should be way for Existing Applications which is using CFileDialog. Regards Yogesh

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          yogeshs wrote:

          I derived class CFileDialog and Customize File Open Dialog

          Then you need to debug your custom code.

          0 1 Reply Last reply
          0
          • L Lost User

            yogeshs wrote:

            I derived class CFileDialog and Customize File Open Dialog

            Then you need to debug your custom code.

            0 Offline
            0 Offline
            002comp
            wrote on last edited by
            #5

            I debug My Code In Win7 too and its working Fine. The prob is tht Open Dialog in Win7 is not resizing.Then Only Preview Window will Appear.How can I Achieve that ? Y

            L 1 Reply Last reply
            0
            • 0 002comp

              I debug My Code In Win7 too and its working Fine. The prob is tht Open Dialog in Win7 is not resizing.Then Only Preview Window will Appear.How can I Achieve that ? Y

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #6

              Sorry, I don't understand what you are saying.

              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