首    页 界面/窗口 网络/通讯 数据库 组件开发 图像/多媒体 NET/Web 其它技术 源码下载 资料下载 软件共享 软件外包 曲艺杂谈
栏目导航:  首    页  |  界面/窗口  |  列表控件   


 修改Listctrl的显示Style


原作者:赖仪灵    源出处:CSDN    发布者:施昌权    发布类型:转载    发布日期:2008-09-25

              
        //if the current style is not report, the following three lines is not need
        GetListCtrl().DeleteAllItems();
        for(int h=GetListCtrl().GetHeaderCtrl()->GetItemCount();h>0;h--)
                GetListCtrl().DeleteColumn(h-1);
        LONG lStyle;
        //Get current window style
        lStyle=GetWindowLong(GetListCtrl().GetSafeHwnd(),GWL_STYLE);
        //Clear original type mask
        lStyle &= ~LVS_TYPEMASK;
        //Add new type style,the sample is icon
        lStyle|=LVS_ICON;
        //Ok,set new type style
        SetWindowLong(GetListCtrl().GetSafeHwnd(),GWL_STYLE,lStyle);



关于我们 版权声明 广告服务 联系我们 友情链接 加入收藏
站长:施昌权    Email:scq2099yt@163.com    MSN:scq2099yt@live.cn    QQ:14046300    本站QQ群:67202409
Copyright © 2008     卓为VC(www.joyvc.cn)    All Rights Reserved    建议分辨率 1024×768
本站由施昌权制作维护
京ICP备09012297号