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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. CFileDialog have a preview function?

CFileDialog have a preview function?

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialquestion
2 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.
  • G Offline
    G Offline
    Grrrr
    wrote on last edited by
    #1

    How to use CFileDialog to have a preview function? I use this method: class CFilePrevDialog : public CFileDialog CFilePrevDialog::CFilePrevDialog(BOOL bOpenFileDialog, LPCTSTR lpszDefExt, LPCTSTR lpszFileName, DWORD dwFlags, LPCTSTR lpszFilter, CWnd* pParentWnd) : CFileDialog(bOpenFileDialog, lpszDefExt, lpszFileName, dwFlags, lpszFilter, pParentWnd) { m_ofn.lpTemplateName = MAKEINTRESOURCE(IDD_DIALOG_PREV); } ----- CString strFileDlg = "Jpg Files (*.Jpg)|*.Jpg|"; CFilePrevDialog dlg(TRUE, "Jpg", NULL, OFN_EXPLORER | OFN_FILEMUSTEXIST | OFN_ALLOWMULTISELECT, strFileDlg, NULL ); dlg.DoModal(); ----------------------- But i found what display is still the standard open filedialog... who can give a advise to use it,not too hard... Best Regards...

    RaviBeeR 1 Reply Last reply
    0
    • G Grrrr

      How to use CFileDialog to have a preview function? I use this method: class CFilePrevDialog : public CFileDialog CFilePrevDialog::CFilePrevDialog(BOOL bOpenFileDialog, LPCTSTR lpszDefExt, LPCTSTR lpszFileName, DWORD dwFlags, LPCTSTR lpszFilter, CWnd* pParentWnd) : CFileDialog(bOpenFileDialog, lpszDefExt, lpszFileName, dwFlags, lpszFilter, pParentWnd) { m_ofn.lpTemplateName = MAKEINTRESOURCE(IDD_DIALOG_PREV); } ----- CString strFileDlg = "Jpg Files (*.Jpg)|*.Jpg|"; CFilePrevDialog dlg(TRUE, "Jpg", NULL, OFN_EXPLORER | OFN_FILEMUSTEXIST | OFN_ALLOWMULTISELECT, strFileDlg, NULL ); dlg.DoModal(); ----------------------- But i found what display is still the standard open filedialog... who can give a advise to use it,not too hard... Best Regards...

      RaviBeeR Offline
      RaviBeeR Offline
      RaviBee
      wrote on last edited by
      #2

      See this[^] article. /ravi Let's put "civil" back in "civilization" Home | Articles | Freeware | Music ravib@ravib.com

      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