开发者

How to write a scrollable MFC custom control?

开发者 https://www.devze.com 2023-01-09 21:09 出处:网络
I want to write my own chart control which req开发者_开发问答uires scrolling. I found that there is a CScrollView but nothing like this for a control.

I want to write my own chart control which req开发者_开发问答uires scrolling. I found that there is a CScrollView but nothing like this for a control.

Other toolkits like Cocoa, QT or GTK offer me a base class where i can set a content view which is displayed in a viewport and saves me from writting all of the scrolling code.


The code for custom scrolling isn't that much. Create the scrollbars, write the message handlers and remember one rectangle for the current visible part.

I would just try it. If you have problems, we are here to help :-)

0

精彩评论

暂无评论...
验证码 换一张
取 消