如题

解决方案 »

  1.   

    InsertColumn(0,"test",LVCFMT_LEFT,100,0);
      

  2.   

    m_list.InsertColumn( 0, "ID", LVCFMT_LEFT, 40 );
      

  3.   

    m_List.InsertColumn(0, "姓名", LVCFMT_CENTER, 40, -1);
    第一个参数代表第几列,第二个参数代表列名,第三个参数代表文字对齐方式,第四个参数代表列宽,
    五个参数代表默认为-1
      

  4.   

    第五个参数的意思:
    nSubItem 
    Index of the subitem associated with the column. If this parameter is -1, no subitem is associated with the column.