Multi line support for static control
-
Hi all, How can i give multi line support for CStatic control? Please help me.:doh:
Dream bigger... Do bigger...Expect smaller aji
see me wrote:
How can i give multi line support for CStatic control?
Doesn't putting a "\n" in the string being displayed do the same.:^)
Somethings seem HARD to do, until we know how to do them. ;-)_AnShUmAn_
-
see me wrote:
How can i give multi line support for CStatic control?
Doesn't putting a "\n" in the string being displayed do the same.:^)
Somethings seem HARD to do, until we know how to do them. ;-)_AnShUmAn_
-
No... I want to do it through my code. If the Text size is greater than the static control size, i need to split the text in to two line. Hope you understand my requirement. :)
Dream bigger... Do bigger...Expect smaller aji
see me wrote:
No... I want to do it through my code.
Actually adding
\n
is the correct method. If it's not working, then you're not doing it correctly.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
-
No... I want to do it through my code. If the Text size is greater than the static control size, i need to split the text in to two line. Hope you understand my requirement. :)
Dream bigger... Do bigger...Expect smaller aji
It depends on the style of your static control. SS_SIMPLE will will display the text on a single line with no wrapping. SS_LEFT, SS_CENTER, and SS_RIGHT will automatically break the string and wrap the text to the next line.
You may be right
I may be crazy
-- Billy Joel --Within you lies the power for good, use it!!!