?? 06.txt
字號:
ListView控件特效
再也找不到比下面這個(gè)示例工程更全的ListView效果演示了。該示例程序運(yùn)用了多達(dá)二十個(gè)API函數(shù),從而使ListView產(chǎn)生出各種不同的效果。例如在ListView控件中顯示圖標(biāo),CheckBox,對其中的項(xiàng)目進(jìn)行排序等等。
本示例程序中用到的二十個(gè)API函數(shù)分別是:
SHGetPathFromIDList SHBrowseForFolder FindFirstFile FindNextFile FindClose
FileTimeToSystemTime UpdateWindow ImageList_Draw SHGetFileInfo SendMessageLong
SendMessageAny GetObject SelectObject DeleteObject CreateFontIndirect
GetWindowLong SetWindowLong SetWindowPos GetDesktopWindow ShellExecute
其中ImageList_Draw是comctl32.dll中的一個(gè)函數(shù)
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -