⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 relctrldlg.h

📁 佳能数码相机 SDK 7.3 开发包 VC++代码 含英文说明文档
💻 H
字号:
// RelCtrlDlg.h : header file
//

#if !defined(AFX_RELCTRLDLG_H__02FEC9E6_1C97_11D6_9CA2_002018A1F394__INCLUDED_)
#define AFX_RELCTRLDLG_H__02FEC9E6_1C97_11D6_9CA2_002018A1F394__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000


/* Information on a picture */
typedef	struct	tagDIBData
{
	HBITMAP		hBmp;
	LPVOID		vpBits;
}DIBData;


/////////////////////////////////////////////////////////////////////////////
// CRelCtrlDlg dialog

class CRelCtrlDlg : public CDialog
{
// Construction
public:
	CRelCtrlDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CRelCtrlDlg)
	enum { IDD = IDD_RELCTRL_DIALOG };
	CStatic	m_Static_ShootingMode;
	CButton	m_Static_ReleaseParam;
	CStatic	m_Static_PhotoEffect;
	CStatic	m_Static_ISOSpeed;
	CStatic	m_Static_Flash;
	CStatic	m_Static_ExpoComp;
	CComboBox	m_CPhotoEffect;
	CComboBox	m_CShootingMode;
	CComboBox	m_CISOSpeed;
	CComboBox	m_CFlash;
	CComboBox	m_CExpoComp;
	CEdit	m_CSavePath;
	CButton	m_CBrowse;
	CButton	m_CAEAF;
	CStatic	m_CViewImage;
	CButton	m_CViewFinder;
	CButton	m_CRelease;
	CButton	m_CRelChk4;
	CButton	m_CRelChk3;
	CButton	m_CRelChk2;
	CButton	m_CRelChk1;
	CButton	m_CEnd;
	CButton	m_CDisconnect;
	CButton	m_CConnect;
	CString	m_CInfoString;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CRelCtrlDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CRelCtrlDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnConnect();
	afx_msg void OnDisconnect();
	afx_msg void OnEnd();
	afx_msg void OnRelease();
	afx_msg void OnRelcheck1();
	afx_msg void OnRelcheck2();
	afx_msg void OnRelcheck3();
	afx_msg void OnRelcheck4();
	afx_msg void OnViewfinder();
	afx_msg void OnAeaf();
	afx_msg void OnBrowse();
	afx_msg void OnDestroy();
	afx_msg void OnSelchangeShootingMode();
	afx_msg void OnSelchangeExpoComp();
	afx_msg void OnSelchangeFlash();
	afx_msg void OnSelchangeISOSpeed();
	afx_msg void OnSelchangePhotoEffect();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
		
private:
	cdReleaseControlCap m_RelControlCap;
	cdHandle			m_hCallbackFunction;	/**/
	
	BOOL				CreateDIBBuffer();
	cdError				SetReleaseState();

	BOOL				m_fVFEnd;			/* The flag of a view finder of operation */
	cdHSource			m_hSource;			/* The handle of a camera */
	CStatic				*m_CpViewFinder;	/* The pointer to the class which shows the view finder picture */
	BOOL				m_fProgramRelease;	/* The release flag by the program */
	DIBData				m_BackSurface;		/* Information on a picture buffer */
	BOOL				m_fCamTypeEOS;
	BOOL				m_fMCard;

	void				ShowReleaseParam(char* modelName);
	void				SetShootingModeBox();	
	void				SetExpoCompBox();
	void				SetFlashBox();	
	void				SetISOSpeedBox();	
	void				SetPhotoEffectBox();

	void				GetCameraInformation();
	void				GetSavePath(	char	*cpBuffer,
										int		iBufferSize );
private:
	/* call back function */
	static cdUInt32	cdSTDCALL CamCallBackFunc(	cdEventID		EventID,
												const cdVoid*	pData,
												cdUInt32		DataSize,
												cdContext		Context );
	static cdUInt32	cdSTDCALL RelCallBackFunc(	cdReleaseEventID	EventID,
												const void *		pData,
												cdUInt32 			DataSize,
												cdContext			Context );
	static cdUInt32	cdSTDCALL ViewFinderCallBackFun(	cdVoid		*pBuf,
										 				cdUInt32	Size,	
														cdUInt32	Format,
														cdContext	Context );
	static UINT WINAPI	ViewFinderProc( LPVOID	vpParam );
};

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

#endif // !defined(AFX_RELCTRLDLG_H__02FEC9E6_1C97_11D6_9CA2_002018A1F394__INCLUDED_)

⌨️ 快捷键说明

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