cstrings strHeader []={" student id ", "accounts", "password"};
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;//to expand the LIST style, select the entire line, grid lines
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
//the EXCEPTION: OCX Property Pages should return FALSE
}
Error:
The error C2226: syntax error: unexpected type 'DWORD'
Pray god to save!!!!!!
CodePudding user response:
#include