// Icons
    HICON hIcon[2];
    int n;
    m_imageList.Create(16, 16, 0, 8, 8); // 32, 32 for large icons
    hIcon[0] = AfxGetApp()->LoadIcon(IDI_WHITE);
    hIcon[1] = AfxGetApp()->LoadIcon(IDI_BLACK);
    for (n = 0; n < 2; n++) {
        m_imageList.Add(hIcon[n]);
    }
// List control
    static char* color[] = {"white", "black", "red",
                            "blue", "yellow", "cyan",
                            "purple", "green"};
    CListCtrl* pList = 
        (CListCtrl*) GetDlgItem(IDC_LISTVIEW1);
    pList->SetImageList(&m_imageList, LVSIL_SMALL); 
    for (n = 0; n < 2; n++) {
        pList->InsertItem(n, color[n], n); 
    }
//修改后的代码
HICON hIcon[2];
int n;
m_imageList.Create(16,16,0,8,8);
hIcon[0]=AfxGetApp()->LoadIconW(IDI_WHITE);
hIcon[1]=AfxGetApp()->LoadIconW(IDI_BLACK);
for(n=0;n<2;n++)
{
m_imageList.Add(hIcon[n]);
} //List control
static wchar_t* color[] = {L"white", L"black", L"red",
L"blue", L"yellow", L"cyan",
L"purple", L"green"};
CListCtrl* pList = 
(CListCtrl*) GetDlgItem(IDC_LISTVIEW1);
pList->SetImageList(&m_imageList, LVSIL_SMALL); 
for (n = 0; n < 2; n++)
{
pList->InsertItem(n, color[n], n); 
}我修改是为了适应unicode,但不知对不对.
这样做出现严重问题,编译没提示问题,但不能如期待中一样:显示出图标.请高人指点,谢谢!