Apart from the horrible confusion about versions, this just doesn't make sense to me: How can a cient area be described by a point??
Any clue??
The POINTL structure contains the coordinates of a point.
EM_POSFROMCHAR Message
Retrieves the client area coordinates of a specified character in an edit control. You can send this message to either an edit control or a rich edit control.
wParam
Rich Edit 1.0 and 3.0: A pointer to a POINTL structure that receives the client area coordinates of the character. The coordinates are in screen units and are relative to the upper-left corner of the control's client area.
Edit controls and Rich Edit 2.0: The zero-based index of the character.
lParam
Rich Edit 1.0 and 3.0: The zero-based index of the character.
Edit controls and Rich Edit 2.0: This parameter is not used.
Just an English comprehension problem :wink
QuoteRetrieves the client area coordinates of a specified character in an edit control.
Translation:
Retrieves the coordinates of a specified character in an edit control; the position is within the client area and relative to its upper-left corner.
Quote from: Tedd on September 18, 2008, 04:12:39 PM
Just an English comprehension problem :wink
QuoteRetrieves the client area coordinates of a specified character in an edit control.
Translation:
Retrieves the coordinates of a specified character in an edit control; the position is within the client area and relative to its upper-left corner.
Thanxalot, Tedd :U
In the meantime, I decided to avoid the version hell and turn the problem upside down:
EM_GETFIRSTVISIBLELINE: OK
EM_GET
LASTVISIBLELINE: No such function, but with...
mov pt.y, client area height
EM_CHARFROMPOS, 0, addr pt
... there is a version-proof substitute.
New trouble:
MSDN: Applications can handle the EN_LINK notification by changing the mouse pointer when it is over the URL. (http://msdn.microsoft.com/en-us/library/bb787970(VS.85).aspx)
Great. Works with WM_SETCURSOR or WM_MOUSEMOVE. So I can change the pointer to a hand. Unfortunately, I have not yet found a way to determine when the mouse pointer has left the link, so that I can change the pointer back to normal.
Can anybody help??