⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 scrsnapview.h

📁 visual c++ 实例编程
💻 H
字号:
// ScrSnapView.h : interface of the CScrSnapView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_SCRSNAPVIEW_H__7CCBB5B1_F8FB_11D5_BE71_0080C8ED41D4__INCLUDED_)
#define AFX_SCRSNAPVIEW_H__7CCBB5B1_F8FB_11D5_BE71_0080C8ED41D4__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

//类名:CScrSnapView
//功能:视图类的操作
//作者:徐景周(jingzhou_xu@163.net)
//组织:未来工作室(Future Studio)
//日期:2001.12.1

#include "NTray.h"  // 加入系统托盘支持头文件

class CScrSnapView : public CScrollView
{
protected: // create from serialization only
	CScrSnapView();
	DECLARE_DYNCREATE(CScrSnapView)

	HICON m_hIcon[1];   //系统区显示图标
	CTrayNotifyIcon m_TrayIcon; //定义系统托盘变量
    CWnd * pFrame;  //得到当前窗体指针
    bool bShow; //窗体显示还是隐藏标志位

// Attributes
public:
	CScrSnapDoc* GetDocument();

	void WinAnimation(bool ShowFlag); //系统区动画显示效果 
// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CScrSnapView)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	protected:
	virtual void OnInitialUpdate(); // called first time after construct
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CScrSnapView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CScrSnapView)
	afx_msg LRESULT OnTrayNotification(WPARAM wParam, LPARAM lParam); //定义系统托盘消息涵数
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnPopmenuShowhide();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in ScrSnapView.cpp
inline CScrSnapDoc* CScrSnapView::GetDocument()
   { return (CScrSnapDoc*)m_pDocument; }
#endif

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_SCRSNAPVIEW_H__7CCBB5B1_F8FB_11D5_BE71_0080C8ED41D4__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -