15,473
社区成员




class CPreview : public CWinThread
{
DECLARE_DYNCREATE(CPreview)
private:
CRITICAL_SECTION m_cs;
EdsBaseRef FCamera ;
bool FMirror,FYMirror,FRotate;
bool bStop ;
void DownLoadEvfData();
protected:
CPreview();
CPreview(EdsBaseRef camera,bool CreateSuspended,bool bMirror,bool bRotate);
virtual ~CPreview();
public:
virtual BOOL InitInstance();
virtual int ExitInstance();
virtual int Run();
__declspec(property(get=GetMirror,put=SetMirror)) bool Mirror;
__declspec(property(get=GetYMirror,put=SetYMirror)) bool YMirror;
__declspec(property(get=GetRotate,put=SetRotate)) bool Rotate90;
protected:
afx_msg void OnStopView(WPARAM wParam,LPARAM lParam);
bool GetMirror()
{
return FMirror;
}
void SetMirror(bool bmirror)
{
FMirror = bmirror;
}
bool GetRotate()
{
return FRotate;
}
void SetRotate(bool brotate)
{
FRotate = brotate;
}
bool GetYMirror()
{
return FYMirror;
}
void SetYMirror(bool bymirror)
{
FYMirror = bymirror;
}
DECLARE_MESSAGE_MAP()
};