怎样改变listBox里字体的颜色?请指教,高分诱惑!
例如:if(flag) to be Red;
if(!flag) to be Green;
例如:if(flag) to be Red;
if(!flag) to be Green;
解决方案 »
- 求详细解读下面的代码.
- vc 服务器和GPRS通信需要CRC校验吗?|服务器接收和处理各种客户端数据?
- 集成开发环境一般是通过什么方式和编译器、链接器进行交互的
- 请教.tab控件切换事件.
- ScrollWindow函数的作用是什么?
- 请问怎样使Dialog中的控件不使能?
- 如何将InstallShield7.01版中输入SN号,把他变成不限使用的正式版
- 串口读写问题
- IP包分析记录,流量分析,禁止区域网内任一用户的TCP连接(即可以禁止其访问web,pop3,ftp等任何基于TCP协议的功能),有兴趣的同志可去http://yycnet.yeah.net,下载
- 高手,你知道吗????
- getcreattime和GetLastWriteTime 转化为CString不同的疑问
- VC中如何捕捉组合键(如Shift+A等)事件?
{
HBRUSH hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor);
// TODO: Change any attributes of the DC here
if(nCtlColor == CTLCOLOR_LISTBOX)
{
if(flag)
pDC->SetTextColor(RGB(255,0,0));
else
pDC->SetTextColor(RGB(0,255,0));
} // TODO: Return a different brush if the default is not desired
return hbr;
}