CListControl Multi-line isssue [英] CListControl Multi-line isssue
问题描述
我有一个基于对话框的应用程序,我在其上放置了一个CListControl。我试图在subitem / cell中设置多行文本。为此,我将列表控件'的所有者绘制固定为TRUE。但是我无法以正确的格式看到文本。我只能看到第一个文字。这适用于旧版VC ++(比如说6.0)。目前我正在使用VS2010 VC ++ MFC。如果我需要设置任何列表控件属性,请告诉我。
如果我将列表控件的'OWNER DRAW FIXED设置为FALSE,那么我可以在单行中看到整个句子,但不能在Multiline中看到。我使用List Control的View属性作为Report。
Regds
SNI
Hi,
I have a dialog based application and I placed a CListControl on it. I am trying to set text in subitem / cell in multiple lines. For this I have set list control''s OWNER DRAW FIXED to TRUE. But I am not able to see the text in proper format. I can see only the first letter of text. This will work in older version of VC++ (say 6.0). Currently I am using VS2010 VC++ MFC. Please let me know if I need to set any of the list control properties.
If I set the list control''s OWNER DRAW FIXED to FALSE then I can see the whole sentence in a single row but not in Multiline. I am using List Control''s View property as "Report".
Regds
SNI
推荐答案
//我只能看到文字的第一个字母。
//这适用于旧版VC ++(比如6.0)。
移植后可能是unicode冲突。
请检查新项目的设置:)
// I can see only the first letter of text.
// This will work in older version of VC++ (say 6.0).
Maybe, an unicode conflict, after the porting.
Please check your new project''s settings :)
这篇关于CListControl Multi-line isssue的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!