获取DT_WORDBREAK属性. [英] get the DT_WORDBREAK property.

查看:134
本文介绍了获取DT_WORDBREAK属性.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在使用drawtext方法在静态控件上添加一些文本,并为此设置了DT_WORDBREAK,现在我想检查该文本是否具有属性"DT_WORDBREAK"是否可以对其进行检查,是否有任何API可以获取该属性?

我正在像这样使用pDC-> DrawText(,, DT_WORDBREAK );

Hi,

I am drwing some text on a static control using drawtext method, and sets DT_WORDBREAK for that , now i want to check whether that text have the property "DT_WORDBREAK" is there any way to chek it, is there any API to get that property?

i am using like this pDC->DrawText( , , DT_WORDBREAK );

推荐答案

我不认为使用任何API都可以得到这种风格回来了.因为这不是window的属性.这只是一种文本格式设置方法.要使此构筑工作生效,您应将其与DT_EDITCONTROL结合使用,如下所示


I dont think that using any API you can get this style back. because this is not the property of window. This is just a text formatting method. To make this foramtting work you should use it with DT_EDITCONTROL as shown below


pDC->DrawText( , , DT_WORDBREAK | DT_EDITCONTROL );


这篇关于获取DT_WORDBREAK属性.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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