--- a/Polygon.cpp
+++ b/Polygon.cpp
@@ -8,6 +8,7 @@
 #include "chitem.h"
 #include "Polygon.h"
 #include "options.h"
+#include "MyFileDialog.h"
 
 #ifdef _DEBUG
 #define new DEBUG_NEW
@@ -372,7 +373,7 @@
   int fhandle;
 
   res=OFN_HIDEREADONLY|OFN_ENABLESIZING|OFN_EXPLORER;
-  CFileDialog m_getfiledlg(FALSE, "ply", makeitemname(".ply",0), res, szFilter);
+  CMyFileDialog m_getfiledlg(FALSE, "ply", makeitemname(".ply",0), res, szFilter);
 
   if( m_getfiledlg.DoModal() == IDOK )
   {
@@ -397,7 +398,7 @@
   
   res=OFN_FILEMUSTEXIST|OFN_ENABLESIZING|OFN_EXPLORER;
   if(readonly) res|=OFN_READONLY;  
-  CFileDialog m_getfiledlg(TRUE, "ply", makeitemname(".ply",0), res, szFilter);
+  CMyFileDialog m_getfiledlg(TRUE, "ply", makeitemname(".ply",0), res, szFilter);
 
 restart:  
   if( m_getfiledlg.DoModal() == IDOK )