IDC_RIGHT, IDC_CENTER not defined ?
rob at codeweavers.com
Tue Feb 8 13:25:45 CST 2005
George Ginden wrote:
> George Ginden ha scritto:
>> OK I'm trying to implement text alignment in the edit control.
>> Now, one question how do I know (in the EDIT_WM_NCCreate for example)
>> if the text alignment has been requested by the programmer ?
> Nevermind, I've figured it out. Now I need to set the "caret" position
> within the edit control...
> Something which converts x,y coords to the column would be cool...
> Eg: text is at x offset, and the cursor position should be updated as
> EDIT_SetCaretPosition at x, y ...
You need to implement the ES_RIGHT style in dlls/user/edit.c.
The caret is part of the problem, drawing is the other. I don't know why
we don't use DrawText instead of TextOut as DrawText already has
More information about the wine-devel