Versions des environnements
>>That check is there because if there is selected text, there is no caret, so there is no caret position, and since a key was used to call the context menu, the mouse position should not be used, since the mouse cursor could be anywhere, that is why the positon defaults to about 1/3 right and down of the control.
>
>
>Hi Carlos,
>
>Thanks for your explanation. However in my tests, even when text is highlit, GetCaretPos() returns the point where the "select action" starts. Therefore GetCaretPos() still works and should be better than applying a preset position for large controls.
>
>Ben
You are right, thank you.
Carlos
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement