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

📄 view.h

📁 visual c++ 实例编程
💻 H
字号:
////////////////////////////////////////////////////////////////
// MSDN Magazine -- August 2001
// If this code works, it was written by Paul DiLascia.
// If not, I don't know who wrote it.
// Compiles with Visual C++ 6.0. Runs on Win 98 and probably Win 2000 too.
// Set tabsize = 3 in your editor.
//
#pragma once

//////////////////
// View displays list control with window text
//
class CMyView : public CListView {
public:
	virtual ~CMyView();
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);

protected:
	CMyView();

	static BOOL CALLBACK MyEnumWindowsProc(HWND hwnd, LPARAM lParam);
	static BOOL CALLBACK MyEnumChildWindowsProc(HWND hwnd, LPARAM lParam);

	void PopulateList();
	void AddWindowToList(HWND hwnd);
	void AddChildWindowToList(HWND hwnd);
	void AddWindowInfo(int iItem, HWND hwnd);

	virtual void OnInitialUpdate(); // called first time after construct

	DECLARE_MESSAGE_MAP()
	DECLARE_DYNCREATE(CMyView)
};


⌨️ 快捷键说明

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