ThumbnailFileDialog.cpp
资源名称:estereo2.zip [点击查看]
上传用户:fengshi120
上传日期:2014-07-17
资源大小:6155k
文件大小:1k
源码类别:
3D图形编程
开发平台:
C/C++
- // ThumbnailFileDialog.cpp : implementation file
- //
- #include "stdafx.h"
- #include "StereoPlus.h"
- #include "ThumbnailFileDialog.h"
- #include ".thumbnailfiledialog.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- enum SHVIEW_ListViewModes
- {
- SHVIEW_Default = 0 ,
- SHVIEW_ICON = 0x7029 ,
- SHVIEW_LIST = 0x702B ,
- SHVIEW_REPORT = 0x702C ,
- SHVIEW_THUMBNAIL= 0x702D ,
- SHVIEW_TILE = 0x702E
- } ;
- // CThumbnailFileDialog
- IMPLEMENT_DYNAMIC(CThumbnailFileDialog, CFileDialog)
- CThumbnailFileDialog::CThumbnailFileDialog(BOOL bOpenFileDialog, LPCTSTR lpszDefExt, LPCTSTR lpszFileName,
- DWORD dwFlags, LPCTSTR lpszFilter, CWnd* pParentWnd) :
- CFileDialog(bOpenFileDialog, lpszDefExt, lpszFileName, dwFlags, lpszFilter, pParentWnd)
- {
- }
- CThumbnailFileDialog::~CThumbnailFileDialog()
- {
- }
- BEGIN_MESSAGE_MAP(CThumbnailFileDialog, CFileDialog)
- END_MESSAGE_MAP()
- // CThumbnailFileDialog message handlers
- BOOL CThumbnailFileDialog::OnNotify(WPARAM wParam, LPARAM lParam, LRESULT* pResult)
- {
- CWnd* pParent = GetParent() ;
- CWnd* pList = FindWindowEx(pParent->m_hWnd, NULL, "SHELLDLL_DefView", NULL) ;
- if( pList )
- {
- pList->SendMessage( WM_COMMAND, SHVIEW_THUMBNAIL,0) ;
- // once found we don't need to change it again
- }
- return CFileDialog::OnNotify(wParam, lParam, pResult);
- }