在列表框中使用字体和颜色项目 [英] using fonts and color item in a LISTBOX

查看:192
本文介绍了在列表框中使用字体和颜色项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好;
我使用C ++(Microsoft Visual Studio 2010).我需要在列表框中使用字体和颜色的代码.

Hi everyone;
I use C++ (microsoft visual studio 2010). I need code to use fonts and color in listbox.

推荐答案

要设置ListBox控件的字体,请将其发送给 ^ ].
若要设置文本和背景的颜色,控件的父窗口(或对话框)必须处理 ^ ].
欢呼声,
AR
To set the font of a ListBox control, send it the WM_SETFONT Message
[^].
To set the color of text and background, the control''s parent window (or dialog) must handle the WM_CTLCOLORLISTBOX Message
[^].
cheers,
AR


这篇关于在列表框中使用字体和颜色项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆