LAPTOP-SNT8I5JK\Boounion
2025-09-19 81df82be1f5f401b80780f65e5811685d9a8e4c4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#pragma once
#include "afxcmn.h"
 
typedef struct
{
    COLORREF colText;
    COLORREF colTextBk;
} LISTITEMEX_9;
 
class CListCtrlEx :
    public CListCtrl
{
public:
    CListCtrlEx();
    ~CListCtrlEx();
 
public:
    void SetItemColor(DWORD_PTR iItem, COLORREF TextColor, COLORREF TextBkColor);
 
 
private:
    CList<LISTITEMEX_9, LISTITEMEX_9&> m_listItemColor;
 
private:
    DECLARE_MESSAGE_MAP()
    afx_msg void OnNMCustomdraw(NMHDR *pNMHDR, LRESULT *pResult);
    virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
};