时 间 记 忆
最 新 评 论
专 题 分 类
最 新 日 志
最 新 留 言
搜 索
用 户 登 录
友 情 连 接
博 客 信 息


 
修改CListCtrl的视图模式
[ 2007-7-12 16:44:00 | By: sunshine ]
 

LONG   lStyle;  
  lStyle   =   GetWindowLong(m_ListCtrl.m_hWnd,   GWL_STYLE);   //取原来的style
  lStyle   &=   ~LVS_TYPEMASK;     //打开修改模式,去掉原来的视图
  lStyle   |=   LVS_LIST;     //加上新视图
  SetWindowLong(m_ListCtrl.m_hWnd,   GWL_STYLE,   lStyle);//设置

 

发表评论:

    大名:
    密码: (游客无须输入密码)
    主页:
    标题:
Powered by Oblog.