文件名称:skinlistdemo
介绍说明--下载内容均来自于网络,请自行研究使用
vc++ VC.NET三个版本的CListCtrl美化源码包,C++自绘标题栏和滚动条的CListCtrl,我写了Init( )函数。在这个函数中动态创建了scrollbars ,并且保证原始的scrollbar被隐藏了。还需要考虑到标题栏的大小,因为我们需要保证CStatic的scrollbars在PositionScrollBars()中的位置是正确的。如果窗口的外观发生变化,我需要保证scrollbars 还在正确的位置上。因为重载了OnEraseBkgnd和OnPainthandlers所以我们还要考虑避免list出现闪烁的问题。我也更改了CSkinListCtrl ()中每行的高亮色而不是用系统的颜色。这里就不展示了,自己去看源码吧。-vc++ VC.NET three versions of source package CListCtrl landscaping, C++ from the painting s title bar and scroll bars CListCtrl, I wrote Init () function. In this function dynamically creates scrollbars, and ensure that the original scrollbar is hidden. Also need to consider the size of the title bar, because we need to ensure that the scrollbars CStatic position PositionScrollBars () in is correct. If the appearance of the window changes, I still need to ensure that the correct position scrollbars. Because overloaded OnEraseBkgnd and OnPainthandlers avoid list so we have to consider the problem of flicker. I also changed the CSkinListCtrl () in each row instead of high-bright color system. Here is not to show that he went to see the source of it.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
C++自绘标题栏和滚动条的CListCtrl\SkinList_DemoVC6\SkinListDone\MEMDC.H
................................\................\............\ReadMe.txt
................................\................\............\res\ColumnHeaderEnd.bmp
................................\................\............\...\ColumnHeaderSpan.bmp
................................\................\............\...\ColumnHeaderStart.bmp
................................\................\............\...\HorizontalScrollBarLeftArrow.bmp
................................\................\............\...\HorizontalScrollBarRightArrow.bmp
................................\................\............\...\HorizontalScrollBarSpan.bmp
................................\................\............\...\HorizontalScrollBarThumb.bmp
................................\................\............\...\ListCtrl_Tile.bmp
................................\................\............\...\SkinList.ico
................................\................\............\...\SkinList.rc2
................................\................\............\...\VerticleScrollbarBottom.bmp
................................\................\............\...\VerticleScrollBarDownArrow.bmp
................................\................\............\...\VerticleScrollBarSpan.bmp
................................\................\............\...\VerticleScrollBarThumb.bmp
................................\................\............\...\VerticleScrollbarTop.bmp
................................\................\............\...\VerticleScrollBarUpArrow.bmp
................................\................\............\resource.h
................................\................\............\SkinHeaderCtrl.cpp
................................\................\............\SkinHeaderCtrl.h
................................\................\............\SkinHorizontalScrollbar.cpp
................................\................\............\SkinHorizontalScrollbar.h
................................\................\............\SkinList.clw
................................\................\............\SkinList.cpp
................................\................\............\SkinList.dsp
................................\................\............\SkinList.dsw
................................\................\............\SkinList.h
................................\................\............\SkinList.rc
................................\................\............\SkinListCtrl.cpp
................................\................\............\SkinListCtrl.h
................................\................\............\SkinListDlg.cpp
................................\................\............\SkinListDlg.h
................................\................\............\SkinVerticleScrollbar.cpp
................................\................\............\SkinVerticleScrollbar.h
................................\................\............\StdAfx.cpp
................................\................\............\StdAfx.h
................................\..............S2010\SkinListDone\MEMDC.H
................................\...................\............\ReadMe.txt
................................\...................\............\res\ColumnHeaderEnd.bmp
................................\...................\............\...\ColumnHeaderSpan.bmp
................................\...................\............\...\ColumnHeaderStart.bmp
................................\...................\............\...\HorizontalScrollBarLeftArrow.bmp
................................\...................\............\...\HorizontalScrollBarRightArrow.bmp
................................\...................\............\...\HorizontalScrollBarSpan.bmp
................................\...................\............\...\HorizontalScrollBarThumb.bmp
................................\...................\............\...\ListCtrl_Tile.bmp
................................\...................\....