CString strHeader[]={"學號","賬號","密碼"};
BOOL Caduseradd::OnInitDialog()
{
CDialog::OnInitDialog();
// TODO: Add extra initialization here
for(int n=0;n<3;n++)
m_listu.InsertColumn(n,strHeader[n],LVCFMT_LEFT,80);
m_listf.InsertColumn(n,strHeader[n],LVCFMT_LEFT,80);}
DWORD styles=LVS_EX_FULLROWSELECT|LVS_EX_GRIDLINES;//擴展LIST風格,選中整行,網格線
ListView_SetExtendedListViewStyleEx(m_listu.m_hWnd,styles,styles);
ListView_SetExtendedListViewStyleEx(m_listf.m_hWnd,styles,styles);
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
報錯:
error C2226: syntax error : unexpected type 'DWORD'
求大神解救!!!
uj5u.com熱心網友回復:
#include <windows.h>轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/83430.html
