CATIA/3DE CAA二次开发-ScrollWindow滚动窗口

cpp 复制代码
class CScrollContainer : public CWnd
{
public:
	CScrollContainer();

	// Attributes
protected:
	int m_nScrollPos;       // Current scroll position
	int m_nTotalHeight;     // Total content height
	int m_nPageHeight;      // Visible area height
	int m_nLineHeight;      // Single line height

	// Operations
public:
	void SetTotalHeight(int nHeight);   // Set total content height
	void ScrollTo(int nPos);            // Scroll to specified position
	void UpdateScrollBar();             // Update scrollbar state

protected:
	afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
	afx_msg BOOL OnMouseWheel(UINT nFlags, short zDelta, CPoint pt);
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg BOOL OnEraseBkgnd(CDC* pDC);
	afx_msg void OnButtonClick(UINT nID);
	DECLARE_MESSAGE_MAP()
};

效果:

相关推荐
风落青芜42 分钟前
排序算法(四):归并排序、计数排序与算法总结
c语言·开发语言·数据结构·算法·排序算法
Resean02231 小时前
讲透Java(14)泛型的本质:类型擦除与桥接方法
java·开发语言
白小飞不会飞1 小时前
【AUTOSAR】CP System Template(9):一份完整配置与排错清单
c++·嵌入式硬件·车载系统·autosar
白小飞不会飞3 小时前
【AUTOSAR】CP System Template(8):抽取与扁平化
c++·嵌入式硬件·车载系统·autosar
apcipot_rain6 小时前
C++开发 面试 1Day速通
开发语言·c++·面试
时间的情敌6 小时前
Three.js GLTF 阀门 / 泵体模型加载、材质修改、状态联动(正常 / 故障 / 告警变色)
开发语言·javascript·three.js·材质
星恒随风7 小时前
从0实现C++ AI大模型接入SDK(七):Ollama本地模型部署、NDJSON流式响应与LLMManager模型管理
linux·开发语言·c++·人工智能·笔记
琳少_8 小时前
java课堂笔记
java·开发语言·数据库·笔记
Brain 博览记9 小时前
脑机接口研究丨FPGA 5 毫秒完成运动想象分类
开发语言·论文阅读·人工智能·机器学习·fpga开发·分类·数据挖掘
Brain 博览记10 小时前
脑网络AI丨给图神经网络装上“信息高速路”
开发语言·网络·论文阅读·人工智能·深度学习·神经网络·机器学习