插入列

 

    const int nColumnWidth=80;
    m_ListPrinter.InsertColumn(0,_T("PrinteName"),LVCFMT_CENTER,nColumnWidth);
    m_ListPrinter.InsertColumn(1,_T("ServerName"),LVCFMT_CENTER,nColumnWidth);
    m_ListPrinter.InsertColumn(2,_T("DriverName"),LVCFMT_CENTER,nColumnWidth);
    m_ListPrinter.InsertColumn(3,_T("PrintProcessor"),LVCFMT_CENTER,nColumnWidth);

 

插入行

m_ListPrinter.InsertItem(i,NULL); 

插入数据

 

m_ListPrinter.SetItemText(0/*行从0开始,0为标题*/,0/*列从0开始,0为第一列*/,_T("0,0"));

 

 

 

相关文章:

  • 2021-06-05
  • 2022-12-23
  • 2021-06-10
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-01
猜你喜欢
  • 2022-01-30
  • 2022-01-10
  • 2022-12-23
  • 2021-04-28
  • 2021-06-13
  • 2022-12-23
相关资源
相似解决方案