Customize a scroll bar like Apple OS X Aqua style

zhaozj2021-02-16  60

Today's task is to customize an apple-style scroll bar class, start to inherit from cscrollbar, but can't find the self-painted method, search online, can not find information, only find a way to use the Win32 API hook, in 98 Not compatible, a scroll bar is not allowed to use the hook so big hand? Only self-motivated, directly from CWIN, start from blank, customize a scrolling bar Cuscrollbar, and fully implement all member functions and messaging methods in CScrollbar, which, in addition to the base class, other call methods and descriptions Completely consistent with CScrollBar, even write document comments, directly watch MSDN. So, a beautiful scroll bar appeared in front of my eyes ...

Many times, using existing controls or code from definition to meet their own needs, there are often various limitations and defects, and it is not as good as the design and unknown issues of others. From new writing, you will find less time you have, the effect is better. Due to your mind and code are yours, you can meet a variety of needs as you want, without having to limit the original design restriction. This is probably the resequence of the software resequences have been said for a long time, but the results have been not high. After all, the software is different construction industries, but it is not designed to be designed with existing materials, but in turn, in the case of possible All materials should be changed around the application. Take this scroll bar, you can't say that Window's scroll bar is gray, you will use it, and you should make a better scrollbar to users, I think such software will have vitality .

转载请注明原文地址:https://www.9cbs.com/read-17559.html

New Post(0)