MFC 列表控件风格error C2226: syntax error : unexpected type 'DWORD'

wait_for_that_day5 2016-03-02 11:09:00
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'

求大神解救!!!
...全文
408 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
ccrun.com 2016-03-03
  • 打赏
  • 举报
回复
#include <windows.h>

1,221

社区成员

发帖
与我相关
我的任务
社区描述
C++ Builder Windows SDK/API
社区管理员
  • Windows SDK/API社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧