|
|
|
[求助]列表视图SDK怎么设置单元颜色。
1. ON_NOTIFY( NM_CUSTOMDRAW, IDC_LIST, OnDrawColorForMyList ) 2. //改变 m_List 控件单行的颜色 void CXX::OnDrawColorForMyList( NMHDR *pNmHdr, LRESULT *pResult ) { NMLVCUSTOMDRAW* pLVCD = reinterpret_cast<NMLVCUSTOMDRAW*>( pNmHdr ); *pResult = CDRF_DODEFAULT; if ( CDDS_PREPAINT == pLVCD->nmcd.dwDrawStage ) { *pResult = CDRF_NOTIFYITEMDRAW; } else if ( CDDS_ITEMPREPAINT == pLVCD->nmcd.dwDrawStage ) { *pResult = CDRF_NOTIFYSUBITEMDRAW; } else if ( (CDDS_ITEMPREPAINT | CDDS_SUBITEM) == pLVCD->nmcd.dwDrawStage ) { COLORREF clrNewTextColor, clrNewBkColor; int nItem = static_cast<int>( pLVCD->nmcd.dwItemSpec ); //如果当前地址与原始地址不一样,则显示字体为红色,否则为黑色 if( sudami != "xor" ) //设置为红色 { clrNewTextColor = RGB( 255, 0, 0 ); } else //设置为黑色 { clrNewTextColor = RGB( 0, 0, 0 ); } //设置背景色 if( nItem%2 ==0 ) { clrNewBkColor = RGB( 240, 240, 240 ); //偶数行背景色为灰色 } else { clrNewBkColor = RGB( 255, 255, 255 ); //奇数行背景色为白色 } pLVCD->clrText = clrNewTextColor; pLVCD->clrTextBk = clrNewBkColor; *pResult = CDRF_DODEFAULT; } } |
|
|
|
[原创]软件保护壳技术专题 - 反调试器技术
我是完全不懂。。。 |
|
|
|
|
|
|
|
|
|
|
|
[求助]一个关于VC2005的使用问题,非常紧急,希望大家给予帮助
你在这里刷版吗? |
|
|
|
[讨论]从磁碟机里逆向出来的Debug权限提权代码……
LZ,你是火星人吗? |
|
|
|
|
|
[原创]EasySYS 0.3.1.1 fixed for vs 2005
嗯,所以我自己用debug版的,感觉还行 |
|
[原创]EasySYS 0.3.1.1 fixed for vs 2005
发现debug编译生成的EXE很稳定,不会出现异常情况; release编译生成的EXE有时候会出现异常。。。 好在写驱动的同学应该有debug运行的环境... - - ------------------------------------------------------------------------ 若有任何BUG,请提出来,以便完善改进. |
操作理由
RANk
{{ user_info.golds == '' ? 0 : user_info.golds }}
雪币
{{ experience }}
课程经验
{{ score }}
学习收益
{{study_duration_fmt}}
学习时长
基本信息
荣誉称号:
{{ honorary_title }}
能力排名:
No.{{ rank_num }}
等 级:
LV{{ rank_lv-100 }}
活跃值:
在线值:
浏览人数:{{ visits }}
最近活跃:{{ last_active_time }}
注册时间:{{ user_info.create_date_jsonfmt }}
勋章
兑换勋章
证书
证书查询 >
能力值