|
{
HELE hListBox = XListView_Create(0,0,1024,400, m_first_page);
XEle_EnableBkTransparent(hListBox, TRUE);
HXCGUI hc = XAdapterListView_Create();
XAdapterListView_Group_AddColumn(hc, L"col1");
XAdapterListView_Item_AddColumn(hc, L"col2");
XAdapterListView_Item_AddColumn(hc, L"col3");
XListView_BindAdapter(hListBox, hc);
HIMAGE himage = XImage_LoadFile(AfxGetImagePathW("取消.png"));
HIMAGE himage1 = XImage_LoadFile(AfxGetImagePathW("取消.png"));
int group1=XAdapterListView_Group_AddItemText(hc,L"group1");
int item = XAdapterListView_Item_AddItemImage(hc,group1, himage);
XAdapterListView_Item_SetText(hc,group1,item,0, L"start");
item = XAdapterListView_Item_AddItemImage(hc,group1, himage1);
XAdapterListView_Item_SetText(hc,group1,item,1, L"start");
}
这段代码是创建一个ListView的,但是不知道什么原因,这段代码显示的list总是这样
是否有BUG?
|
|