// MBCaptureScreenfun.cpp : implementation file // #include "stdafx.h" #include "mbcapturescreen.h" #include "MBCaptureScreenFun.h" #include "CWindowEnumer.h" #include "SnapshotDlg.h" // CMBCaptureScreenfun CMBCaptureScreenFun::CMBCaptureScreenFun() { } CMBCaptureScreenFun::~CMBCaptureScreenFun() { } // CMBCaptureScreenfun member functions int CMBCaptureScreenFun::StartCaptureScreen(CString &strCaptureFile,CString strWaterMark, BOOL bHaveComplete,BOOL bHaveDirectSend) { int nRet = 0; CSnapshotDlg snapshotDlg; strCaptureFile = _T(""); snapshotDlg.SetData(strWaterMark, bHaveComplete,bHaveDirectSend ); CWindowEnumer::EnumAllTopWindow(); if( snapshotDlg.DoModal() == IDOK) { nRet = snapshotDlg.GetExitResult(strCaptureFile );; } return nRet; }