Listview of Check

xiaoxiao2021-03-06  20

For this some can't solve, so find http://www.china-askpro.com/msg5/QA79.SHTML

Added, it turned out to be very unfolbened for 0x2000. Later, I read MSDN. About State, there was a detailed instructions in MSDN's LVItem, where the part is related to Check, Bits 8 THROUGH 11 of this Member Specify the one -based overlay image index. Both the full-sized icon image list and the small icon image list can have overlay images. The overlay image is superimposed over the item's icon image. If these bits are zero, the item has no overlay image. To isolate these bits, use the LVIS_OVERLAYMASK mask. To set the overlay image index in this member, you should use the INDEXTOOVERLAYMASK macro. The image list's overlay images are set with the ImageList_SetOverlayImage function

Image 1 is unchecked, the corresponding State is 0x1000 image 2 is Checked, the corresponding state is 0x2000

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

New Post(0)