Hello everybody
I have a STATIC control created with CreateWindowEx and I would like to know if there is a way of aligning the text inside of it as justified. I mean, something like
1 2 3 4 5 6 7 8 9 10 11 12 13 14
splash_desc = CreateWindowEx(
WS_EX_PALETTEWINDOW,
"STATIC",
"a lot of text to be justified",
WS_VISIBLE|WS_CHILD|ES_JUSTIFY,
13,
30,
275,
115,
hWnd,
(HMENU)MYLABEL1,
hInstance,
NULL
);
It doesn't work. What I want is to make the text align with both the left and right margins. Thanks, anyway. Waiting for more suggestion while trying to find one by myself, too.
You mean both left and right justified? I don't think a static control will do that natively. I know within Word there is such a function but I don't think it's a trivial API call.