Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS General Discussion » CExtContentExpandWnd Collapse All
Subject Author Date
Osmin Lazo Sep 23, 2005 - 2:09 PM

Following your advice I have overridden the OnQueryDrawTextFlags method of a grid cell class in order to remove DT_SINGLELINE and display multiline text in the cell. The problem now is with the content expand window which is still displaying only the first line of the cell. I can’t find any method in the cell class that would allow me to do the same thing for the content expand window. Is there a way?


Thanks in advanced.


 

Technical Support Sep 24, 2005 - 10:52 AM

The CExtGridCell::OnPaintText() virtual method draws text in the cell area. It is invoked from the CExtGridCell::OnPaintForeground() virtual method when the grid content is being painted. It is invoked from the CExtGridCell::OnPaintExpandedContent() virtual method when the client area of the content expand window is being painted. What you need is to provide the grid window with valid information about the size of the text in pixels. The CExtGridCell::OnMeasureTextSize() function computes the text size. Just override it, copy the source code from the original method and compute the size of the text without the DT_SINGLELINE flag.

Osmin Lazo Sep 26, 2005 - 2:02 PM

Thanks!