I’ve got a Rich Edit Control, created like this,
box = CreateWindowEx(
0,
MSFTEDIT_CLASS,
L"Type here",
WS_VISIBLE | WS_CHILD | WS_TABSTOP | SS_OWNERDRAW,
position.x,
position.y,
dimensions.x,
dimensions.y,
owner,
0,
hinst,
0);
The documentation indicates that ES_LEFT will left-align the text, which is what I’m looking for. But when I add it to the list of styles, nothing happens. How can I set this edit control style?
Just like you would any other style in the fourth parameter of
CreateWindowEx():