1 // MainFrm.h : interface of the CMainFrame class
2 //
3 /////////////////////////////////////////////////////////////////////////////
4 
5 #if !defined(AFX_MAINFRM_H__1DEE4BC7_6B56_48A8_BDD7_5DC14EF6AD3E__INCLUDED_)
6 #define AFX_MAINFRM_H__1DEE4BC7_6B56_48A8_BDD7_5DC14EF6AD3E__INCLUDED_
7 
8 #if _MSC_VER >= 1000
9 #pragma once
10 #endif // _MSC_VER >= 1000
11 
12 #include "ProgressBar.h"
13 
14 
15 class CChildView : public CWnd
16 {
17 // Construction
18 public:
19 	CChildView();
20 
21 // Attributes
22 public:
23 
24 // Operations
25 public:
26 
27 // Overrides
28 	// ClassWizard generated virtual function overrides
29 	//{{AFX_VIRTUAL(CChildView)
30 protected:
31 	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
32 	//}}AFX_VIRTUAL
33 
34 // Implementation
35 public:
36 	virtual ~CChildView();
37 	// Generated message map functions
38 protected:
39 	//{{AFX_MSG(CChildView)
40 	//}}AFX_MSG
41 	DECLARE_MESSAGE_MAP()
42 };
43 
44 class CMainFrame : public CFrameWnd
45 {
46 public:
47 	CMainFrame();
48 
49 
50 
51 protected:
52 	DECLARE_DYNAMIC(CMainFrame)
53 
54 // Attributes
55 public:
56 
57 	ProgressBar    m_progBar;
58 	Bool m_full_screen, m_restore_fs, m_view_timing;
59 	u32 m_timer_on;
60 	CString console_message;
61 	GF_Err console_err;
62 	u32 m_aspect_ratio;
63 
64 // Operations
65 public:
66 	void SetPauseButton(Bool force_play_button = 0);
67 
68 // Overrides
69 	// ClassWizard generated virtual function overrides
70 	//{{AFX_VIRTUAL(CMainFrame)
71 	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
72 	afx_msg void OnSetFocus(CWnd *pOldWnd);
73 	virtual BOOL OnCmdMsg(UINT nID, int nCode, void* pExtra, AFX_CMDHANDLERINFO* pHandlerInfo);
74 	//}}AFX_VIRTUAL
75 
76 // Implementation
77 public:
78 	virtual ~CMainFrame();
79 
80 	/*
81 	#ifdef _DEBUG
82 		virtual void AssertValid() const;
83 		virtual void Dump(CDumpContext& dc) const;
84 	#endif
85 	*/
86 
87 protected:  // control bar embedded members
88 
89 #if (_MSC_VER >= 1300)
90 	CCommandBar	m_wndCommandBar;
91 #else
92 	CCeCommandBar	m_wndCommandBar;
93 #endif
94 
95 	void CloseURL();
96 	void ForwardMessage();
97 
98 private:
99 	RECT m_view_rc;
100 
101 public:
102 	/*m_dumbWnd is used to clean the screen...*/
103 	CChildView m_wndView, m_dumbWnd;
104 	void UpdateTime();
105 
106 // Generated message map functions
107 protected:
108 	//{{AFX_MSG(CMainFrame)
109 	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
110 	afx_msg void OnAppExit();
111 	afx_msg LONG Open(WPARAM wParam, LPARAM lParam);
112 	afx_msg LONG OnSIPChange(WPARAM wParam, LPARAM lParam);
113 	afx_msg LONG OnSetSize(WPARAM wParam, LPARAM lParam);
114 	afx_msg LONG OnNavigate(WPARAM wParam, LPARAM lParam);
115 	afx_msg void OnSize(UINT nType, int cx, int cy);
116 	afx_msg void OnFileStep();
117 	afx_msg void OnUpdateFileStep(CCmdUI* pCmdUI);
118 	afx_msg void OnFilePause();
119 	afx_msg void OnUpdateFilePause(CCmdUI* pCmdUI);
120 	afx_msg void OnFileStop();
121 	afx_msg void OnUpdateFileStop(CCmdUI* pCmdUI);
122 	afx_msg void OnViewFullscreen();
123 	afx_msg void OnUpdateViewFullscreen(CCmdUI* pCmdUI);
124 	afx_msg void OnClose();
125 	afx_msg void OnViewFit();
126 	afx_msg void OnUpdateViewFit(CCmdUI* pCmdUI);
127 	afx_msg void OnViewArOrig();
128 	afx_msg void OnViewArFill();
129 	afx_msg void OnViewAr43();
130 	afx_msg void OnViewAr169();
131 	afx_msg void OnNavNone();
132 	afx_msg void OnNavSlide();
133 	afx_msg void OnNaveReset();
134 	afx_msg void OnSetNavigation(UINT nID);
135 
136 	afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
137 	afx_msg void OnKeyUp(UINT nChar, UINT nRepCnt, UINT nFlags);
138 	afx_msg void OnViewTiming();
139 	afx_msg void OnUpdateViewTiming(CCmdUI* pCmdUI);
140 	afx_msg void OnInitMenuPopup(CMenu* pPopupMenu, UINT nIndex, BOOL bSysMenu);
141 	//}}AFX_MSG
142 
143 	DECLARE_MESSAGE_MAP()
144 };
145 
146 /////////////////////////////////////////////////////////////////////////////
147 
148 //{{AFX_INSERT_LOCATION}}
149 // Microsoft eMbedded Visual C++ will insert additional declarations immediately before the previous line.
150 
151 #endif // !defined(AFX_MAINFRM_H__1DEE4BC7_6B56_48A8_BDD7_5DC14EF6AD3E__INCLUDED_)
152