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()
};

效果:

相关推荐
ShineWinsu6 分钟前
对于MySQL:数据库的操作的解析
linux·数据库·c++·mysql·面试·笔试·库的操作
云小逸23 分钟前
C++ 第一阶段:对象、内存与生命周期
开发语言·c++
夜航海图26 分钟前
S-57 数据解剖:把一个 ENC 文件拆给你看
c++
(Charon)28 分钟前
【C++】网络缓冲区设计(三):Chain Buffer链式缓冲区、动态扩容与跨节点读写
服务器·c++
玖玥拾38 分钟前
Lua 基础语法(二)
开发语言·unity·lua
王的宝库42 分钟前
GO常用标准库包
开发语言·后端·golang
geovindu1 小时前
python: Face Recognition
开发语言·后端·python·人脸识别
平头哥技术团队1 小时前
Day 13 | 调 line-height 和 margin:三处间距让名片页脱离模板感
开发语言·前端·javascript·学习·html5
黑马程序员毕设2 小时前
基于Java的仪器管理系统设计与实现
java·开发语言·spring boot·后端·微信小程序
平头哥AI2 小时前
Day 13 | 一个函数回两个值:Go 的 error 是从哪冒出来的
开发语言·后端·golang