mainframe.h

来自「基于IEEE 1394总线的图像采集及处理系统软件技术研究」· C头文件 代码 · 共 78 行

H
78
字号
#if !defined(AFX_MAINFRAME_H__953915DB_541B_4D0D_83C1_6463FA99B925__INCLUDED_)
#define AFX_MAINFRAME_H__953915DB_541B_4D0D_83C1_6463FA99B925__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// MainFrame.h : header file
//
#include "1394Display.h"
#include "1394Surface.h"
/////////////////////////////////////////////////////////////////////////////
// CMainFrame frame

class CMainFrame : public CFrameWnd
{
	DECLARE_DYNCREATE(CMainFrame)
public:
	CMainFrame();           // protected constructor used by dynamic creation

// Attributes
public:

// Operations
public:
	void SaveImageToFile(char* byteFrame,int n);
	C1394Display*            m_pDisplay;
	C1394Surface*            m_pLogoSurface;
	C1394Surface*            m_pTextSurface;
	C1394Surface*            m_pLogoSurfaceMul[10];
	CString m_strImagePath;
	CString m_strImageName;
	CString m_strImageExt;
	CList<CString,CString> m_ImageNameExtList;
	int		m_nDisplayOrSave;
	bool m_bWindowed;	
	HRESULT DisplayFrame();
	HRESULT DisplayFrame( int i);
	void FreeDirectDraw();
	HRESULT InitDirectDraw();
	int		m_nFrameNumber;
	BOOL m_bStop;
	BOOL m_bOpen;

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMainFrame)
	public:
	//}}AFX_VIRTUAL

// Implementation
protected:
	virtual ~CMainFrame();

	// Generated message map functions
	//{{AFX_MSG(CMainFrame)
	afx_msg void OnStart();
	afx_msg void OnStop();
	afx_msg void OnUpdateStart(CCmdUI* pCmdUI);
	afx_msg void OnUpdateStop(CCmdUI* pCmdUI);
	afx_msg void OnConfigure1394();
	afx_msg void OnConfigureDisplay();
	afx_msg void OnGet1394device();
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnFullScreen();
	afx_msg void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags);
	afx_msg void OnMove(int x, int y);
	afx_msg void OnDestroy();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_MAINFRAME_H__953915DB_541B_4D0D_83C1_6463FA99B925__INCLUDED_)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?