Click here to Skip to main content
15,899,679 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to extract string from where mouse has pointed to? Pin
Li-kai Liu (Angus)21-Mar-02 13:55
Li-kai Liu (Angus)21-Mar-02 13:55 
GeneralRe: How to extract string from where mouse has pointed to? Pin
Christian Graus21-Mar-02 14:14
protectorChristian Graus21-Mar-02 14:14 
GeneralRe: How to extract string from where mouse has pointed to? Pin
Michael Dunn21-Mar-02 17:10
sitebuilderMichael Dunn21-Mar-02 17:10 
GeneralRe: How to extract string from where mouse has pointed to? Pin
Li-kai Liu (Angus)21-Mar-02 18:28
Li-kai Liu (Angus)21-Mar-02 18:28 
AnswerRe: How to extract string from where mouse has pointed to? Pin
moliate21-Mar-02 14:43
moliate21-Mar-02 14:43 
GeneralRe: How to extract string from where mouse has pointed to? Pin
Christian Graus21-Mar-02 15:14
protectorChristian Graus21-Mar-02 15:14 
GeneralRe: How to extract string from where mouse has pointed to? Pin
Li-kai Liu (Angus)21-Mar-02 15:38
Li-kai Liu (Angus)21-Mar-02 15:38 
GeneralRe: How to extract string from where mouse has pointed to? Pin
moliate21-Mar-02 16:23
moliate21-Mar-02 16:23 
ykliu wrote:
But doesn't getting innerText return
all text that an element has?


Unfortionally, it does.... (similar to GetWindowText)

I really don't know how to get a specific word or character. A possible (but probably not the best) solution would be to make a copy of the element and gradually update the text so it removes one word after another. At the same time reduce the mouse coordinates by the difference between the original elements lower right corner, and the copys lower right. When the mouse goes out of the bounding box, you have the word pointed at... (hopefully)

/moliate
GeneralRe: How to extract string from where mouse has pointed to? Pin
Li-kai Liu (Angus)21-Mar-02 17:52
Li-kai Liu (Angus)21-Mar-02 17:52 
GeneralUrgent- Need ur assistance Pin
binnu21-Mar-02 13:18
binnu21-Mar-02 13:18 
GeneralRe: Urgent- Need ur assistance Pin
Christian Graus21-Mar-02 13:31
protectorChristian Graus21-Mar-02 13:31 
GeneralRe: Urgent- Need ur assistance Pin
binnu21-Mar-02 13:52
binnu21-Mar-02 13:52 
GeneralRe: Urgent- Need ur assistance Pin
Christian Graus21-Mar-02 14:21
protectorChristian Graus21-Mar-02 14:21 
GeneralSetting a windows parent Pin
David Wengier21-Mar-02 13:11
David Wengier21-Mar-02 13:11 
GeneralRe: Setting a windows parent Pin
Nish Nishant21-Mar-02 14:10
sitebuilderNish Nishant21-Mar-02 14:10 
GeneralRe: Setting a windows parent Pin
David Wengier21-Mar-02 14:14
David Wengier21-Mar-02 14:14 
GeneralRe: Setting a windows parent Pin
Tomasz Sowinski21-Mar-02 23:19
Tomasz Sowinski21-Mar-02 23:19 
GeneralRe: Setting a windows parent Pin
David Wengier22-Mar-02 12:11
David Wengier22-Mar-02 12:11 
GeneralUnderstanding MFC Pin
21-Mar-02 12:55
suss21-Mar-02 12:55 
GeneralRe: Understanding MFC Pin
Christian Graus21-Mar-02 13:36
protectorChristian Graus21-Mar-02 13:36 
GeneralCDO and header files (cdosyserr.h) Pin
albean21-Mar-02 12:40
albean21-Mar-02 12:40 
GeneralSet system time in VC Pin
aldeba21-Mar-02 12:01
aldeba21-Mar-02 12:01 
GeneralRe: Set system time in VC Pin
Joaquín M López Muñoz21-Mar-02 12:12
Joaquín M López Muñoz21-Mar-02 12:12 
GeneralRe: Set system time in VC Pin
aldeba21-Mar-02 12:15
aldeba21-Mar-02 12:15 
GeneralDocuments, Views, and Splitters oh My! Pin
dazinith21-Mar-02 11:29
dazinith21-Mar-02 11:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.