📄 gseview.h
字号:
#if !defined(AFX_GSEVIEW_H__11044CB8_BF80_4D54_851F_88FEC8F9838F__INCLUDED_)
#define AFX_GSEVIEW_H__11044CB8_BF80_4D54_851F_88FEC8F9838F__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// GSEView.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// GSEView view
class GSEView : public CScrollView, public CGsEngine
{
CGsTexture* m_ptr_bk_texture;
DWORD m_bk_color;
protected:
GSEView(); // protected constructor used by dynamic creation
DECLARE_DYNCREATE(GSEView)
// Attributes
public:
// virtual HRESULT OnRender();
// virtual BOOL OnUpdate();
// Operations
public:
virtual HRESULT OnDraw(CGsSurface* pSurface);
virtual HRESULT ReleaseSource();
virtual HRESULT RestoreSource();
VOID SetBkColor(DWORD color);
VOID SetBkTexture(const char* strBkTexture=NULL);
virtual BOOL Init();
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(GSEView)
public:
virtual BOOL OnScroll(UINT nScrollCode, UINT nPos, BOOL bDoScroll = TRUE);
protected:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual void OnInitialUpdate(); // first time after construct
virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
virtual void OnActivateView(BOOL bActivate, CView* pActivateView, CView* pDeactiveView);
//}}AFX_VIRTUAL
// Implementation
protected:
virtual HRESULT OnRender();
// virtual HRESULT RenderView(LPDIRECT3DDEVICE7 pDev, CGsSurface* pBackSurface);
virtual ~GSEView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
// Generated message map functions
//{{AFX_MSG(GSEView)
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnShowWindow(BOOL bShow, UINT nStatus);
afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_GSEVIEW_H__11044CB8_BF80_4D54_851F_88FEC8F9838F__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -