5 #if !defined(AFX_MAINFRM_H__03CF625D_5190_4DE4_AA47_DBB6E3C23015__INCLUDED_)
6 #define AFX_MAINFRM_H__03CF625D_5190_4DE4_AA47_DBB6E3C23015__INCLUDED_
10 #endif // _MSC_VER > 1000
12 #include "OpenGLWndFaceTracker.h"
13 #include "VisionExampleDoc.h"
15 class CMainFrame :
public CFrameWnd
20 DECLARE_DYNCREATE(CMainFrame)
31 virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
36 virtual ~CMainFrame();
39 LRESULT OnChangeStatusBar(WPARAM wParam, LPARAM lParam);
40 void ShowAvailConfigFiles(
char *path,
char *currentChoice);
41 void ShowAvailCamResolutions();
42 void ShowAvailCamDevices();
43 void ShowAvailMaxFaces();
44 void GetConfigFilename(CString& strName);
45 void GetCameraResolution(CString& strName);
46 int GetCameraDevice();
51 virtual void AssertValid()
const;
52 virtual void Dump(CDumpContext& dc)
const;
55 CStatusBar m_wndStatusBar;
57 CToolBar m_wndToolBar;
58 CComboBox *m_comboBoxConfigFile;
59 CComboBox *m_comboBoxCamResolution;
60 CComboBox *m_comboBoxCamDevice;
61 CComboBox *m_comboBoxMaxFaces;
63 CDialogBar m_wndDlgBar;
68 afx_msg
int OnCreate(LPCREATESTRUCT lpCreateStruct);
73 afx_msg BOOL OnToolTipText(UINT nID, NMHDR* pNMHDR, LRESULT* pResult);
82 #endif // !defined(AFX_MAINFRM_H__03CF625D_5190_4DE4_AA47_DBB6E3C23015__INCLUDED_)
The OpenGL-enabled window with rendering and basic interaction.