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

📄 lockableheaderctrl.h

📁 管理项目进度工具的原代码
💻 H
字号:
////////////////////////////////////////////////////////////////
// MSDN Magazine -- June 2003
// If this code works, it was written by Paul DiLascia.
// If not, I don't know who wrote it.
// Compiles with Visual Studio .NET on Windows XP. Tab size=3.
//
// modified to give per column control
#pragma once

//////////////////
// Header control with lockable columns.
// Call Lock to lock/unlock them.

#include <afxtempl.h>
//
class CLockableHeaderCtrl : public CHeaderCtrl
{
public:
	CLockableHeaderCtrl() { }

	void LockColumn(int nColumn, BOOL bLock = TRUE);
	BOOL IsColumnLocked(int nColumn);

protected:
	CMap<int, int, int, int&> m_mapLocked; // columns are locked

protected:
	virtual BOOL OnChildNotify(UINT msg, WPARAM wp, LPARAM lp, LRESULT* pRes);
	afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
	DECLARE_MESSAGE_MAP();
};

⌨️ 快捷键说明

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