使用soui开发的mbc,只支持windows版本
w1146869587
2022-01-24 4905e2e7537d507f218e8e9595485e09d9f3a2b4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// 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;
}