#if !defined(AFX_MAINFRM_H__1DEE4BC7_6B56_48A8_BDD7_5DC14EF6AD3E__INCLUDED_)
#define AFX_MAINFRM_H__1DEE4BC7_6B56_48A8_BDD7_5DC14EF6AD3E__INCLUDED_
#if _MSC_VER >= 1000
#pragma once
#endif
#include "ProgressBar.h"
class CChildView : public CWnd
{
public:
CChildView();
public:
public:
protected:
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
public:
virtual ~CChildView();
protected:
DECLARE_MESSAGE_MAP()
};
class CMainFrame : public CFrameWnd
{
public:
CMainFrame();
protected:
DECLARE_DYNAMIC(CMainFrame)
public:
ProgressBar m_progBar;
Bool m_full_screen, m_restore_fs, m_view_timing;
u32 m_timer_on;
CString console_message;
GF_Err console_err;
u32 m_aspect_ratio;
public:
void SetPauseButton(Bool force_play_button = 0);
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
afx_msg void OnSetFocus(CWnd *pOldWnd);
virtual BOOL OnCmdMsg(UINT nID, int nCode, void* pExtra, AFX_CMDHANDLERINFO* pHandlerInfo);
public:
virtual ~CMainFrame();
protected:
#if (_MSC_VER >= 1300)
CCommandBar m_wndCommandBar;
#else
CCeCommandBar m_wndCommandBar;
#endif
void CloseURL();
void ForwardMessage();
private:
RECT m_view_rc;
public:
CChildView m_wndView, m_dumbWnd;
void UpdateTime();
protected:
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnAppExit();
afx_msg LONG Open(WPARAM wParam, LPARAM lParam);
afx_msg LONG OnSIPChange(WPARAM wParam, LPARAM lParam);
afx_msg LONG OnSetSize(WPARAM wParam, LPARAM lParam);
afx_msg LONG OnNavigate(WPARAM wParam, LPARAM lParam);
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnFileStep();
afx_msg void OnUpdateFileStep(CCmdUI* pCmdUI);
afx_msg void OnFilePause();
afx_msg void OnUpdateFilePause(CCmdUI* pCmdUI);
afx_msg void OnFileStop();
afx_msg void OnUpdateFileStop(CCmdUI* pCmdUI);
afx_msg void OnViewFullscreen();
afx_msg void OnUpdateViewFullscreen(CCmdUI* pCmdUI);
afx_msg void OnClose();
afx_msg void OnViewFit();
afx_msg void OnUpdateViewFit(CCmdUI* pCmdUI);
afx_msg void OnViewArOrig();
afx_msg void OnViewArFill();
afx_msg void OnViewAr43();
afx_msg void OnViewAr169();
afx_msg void OnNavNone();
afx_msg void OnNavSlide();
afx_msg void OnNaveReset();
afx_msg void OnSetNavigation(UINT nID);
afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
afx_msg void OnKeyUp(UINT nChar, UINT nRepCnt, UINT nFlags);
afx_msg void OnViewTiming();
afx_msg void OnUpdateViewTiming(CCmdUI* pCmdUI);
afx_msg void OnInitMenuPopup(CMenu* pPopupMenu, UINT nIndex, BOOL bSysMenu);
DECLARE_MESSAGE_MAP()
};
#endif