Click here to Skip to main content
15,921,697 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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 );
Posted

1 solution

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


C++
pDC->DrawText( , , DT_WORDBREAK | DT_EDITCONTROL );
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900