平台:Windows Mobile 6
用Virtual List View显示数据。按MSDN说的,用虚List View当需要显示数据的时候,会向主窗口发送LVN_GETDISPINFO消息。
消息包含一个LV_DISPINFO结构。
这个结构的item成员表示当前正要显示的列表项
item的子成员.pszText为列表项显示的文本。按MSDN说的可以将一个字符串的指针赋给pszText 
也可以向这个pszText指针写入字符串。
如:lstrcpy(pnmv->item.pszText,TEXT("ABC"));
可是我用如上代码写入的时候就异常了。以下是MSDN原文
=================================================================
If the structure is receiving item text, the pszText and cchTextMax members specify the address and size of a buffer. You can either copy text to the buffer or assign the address of a string to the pszText member. In the latter case, you must not change or delete the string until the corresponding item text is deleted or two additional LVN_GETDISPINFO messages have been sent.