📄 flashplayview.h
字号:
// FlashPlayView.h : interface of the CFlashPlayView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_FLASHPLAYVIEW_H__819B6DEE_D575_4930_91B0_3C922B18166D__INCLUDED_)
#define AFX_FLASHPLAYVIEW_H__819B6DEE_D575_4930_91B0_3C922B18166D__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "FlashPlayDoc.h"
#include "shockwaveflash.h"
#define FLASHID 1111 //specied flash control ID
// MENUEX_ADD - Include header file
//#include "MenuEx\MenuEx.h"
class CFlashPlayView : public CView
{
protected: // create from serialization only
CFlashPlayView();
DECLARE_DYNCREATE(CFlashPlayView)
// Attributes
public:
CFlashPlayDoc* GetDocument();
CShockwaveFlash m_flash;
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CFlashPlayView)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
virtual void OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint);
virtual void PostNcDestroy();
virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam);
//}}AFX_VIRTUAL
// Implementation
public:
void FileTypeAssociate(BOOL IsRight);
UINT m_nEditHideTime;
BOOL m_bHideMouse;
BOOL m_bFileType;
virtual ~CFlashPlayView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// MENUEX_ADD - Add instance of class
//CMenu m_menuContext;
// Generated message map functions
protected:
BOOL m_bOnTop;
BOOL m_bIsPlaying;
BOOL m_bMovieExist;
UINT m_nTimer;
BOOL m_bEnableRBtn;
//{{AFX_MSG(CFlashPlayView)
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnPlayPlay();
afx_msg void OnUpdatePlayPlay(CCmdUI* pCmdUI);
afx_msg void OnPlayPause();
afx_msg void OnUpdatePlayPause(CCmdUI* pCmdUI);
afx_msg void OnPlayStop();
afx_msg void OnUpdatePlayStop(CCmdUI* pCmdUI);
afx_msg void OnPlayForward();
afx_msg void OnUpdatePlayForward(CCmdUI* pCmdUI);
afx_msg void OnPlayBack();
afx_msg void OnUpdatePlayBack(CCmdUI* pCmdUI);
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnViewRbtnmenu();
afx_msg void OnUpdateViewRbtnmenu(CCmdUI* pCmdUI);
afx_msg void OnClose();
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnToolsOption();
afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
afx_msg void OnKeyUp(UINT nChar, UINT nRepCnt, UINT nFlags);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
afx_msg LRESULT OnMsgChangPosition(WPARAM wParam,LPARAM lParam);
//处理flash控件发送的消息
DECLARE_EVENTSINK_MAP()
afx_msg void OnFSCommandFlash(LPCTSTR command, LPCTSTR args);
};
#ifndef _DEBUG // debug version in FlashPlayView.cpp
inline CFlashPlayDoc* CFlashPlayView::GetDocument()
{ return (CFlashPlayDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_FLASHPLAYVIEW_H__819B6DEE_D575_4930_91B0_3C922B18166D__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -