drawtext - Display text in a MFC application -


i need display text in mfc application. have sample text "display text in mfc application". let's assume client window in intend draw text small(horizontally) in 1 line text can fit "display text in". words "mfc application" not displayed. question is, how ensure these words displayed in next line, instead of being clipped off?i'm using drawtext function display text.

thanks.

by default, drawtext api behaves need, unless dt_singleline format specified. provide correct lprect parameter.

http://msdn.microsoft.com/en-us/library/windows/desktop/dd162498%28v=vs.85%29.aspx

mfc cdc::drawtext method has same behavior.

use getclientrect function window rectangle, , pass rectangle drawtext method.


Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c# - Copy ObservableCollection to another ObservableCollection -

All overlapping substrings matching a java regex -