Click here to Skip to main content
15,905,587 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
General:) Pin
Masaaki Onishi15-Nov-01 4:07
Masaaki Onishi15-Nov-01 4:07 
General.tbl Files Pin
Ray Kinsella15-Nov-01 1:21
Ray Kinsella15-Nov-01 1:21 
GeneralRe: .tbl Files Pin
Bill Wilson15-Nov-01 13:51
Bill Wilson15-Nov-01 13:51 
GeneralRe: .tbl Files Pin
Ray Kinsella15-Nov-01 22:26
Ray Kinsella15-Nov-01 22:26 
GeneralRe: .tbl Files Pin
Bill Wilson16-Nov-01 7:08
Bill Wilson16-Nov-01 7:08 
QuestionHow to recognize a word under mouse position? Pin
14-Nov-01 21:53
suss14-Nov-01 21:53 
AnswerRe: How to recognize a word under mouse position? Pin
Christian Graus15-Nov-01 8:48
protectorChristian Graus15-Nov-01 8:48 
AnswerRe: How to recognize a word under mouse position? Pin
Joaquín M López Muñoz15-Nov-01 9:41
Joaquín M López Muñoz15-Nov-01 9:41 
This approach is not bullet-proof, and it's sentence- rather than word-oriented, but it might suit your needs.
  1. Enumerate all top-level windows on the screen with EnumWindows().
  2. Stick with the first top-level windows lying under the mouse position (GetCursorPos(), you sure knew that one).
  3. Repeat the trick with the child windows of this top-level window --EnumChildWindows() is the API to use now.
  4. Stick with the first child window under the mouse position, or the top-level window if none of the childs passes the test.
  5. Retrieve the text of the window with GetWindowText().

    Problems with z-order seem to be handled OK as the enumeration routines do their job in a top-to-bottom way.

    Joaquín M López Muñoz
    Telefónica, Investigación y Desarrollo

AnswerRe: How to recognize a word under mouse position? Pin
Kind15-Nov-01 15:03
Kind15-Nov-01 15:03 
GeneralRe: How to recognize a word under mouse position? Pin
Saeed Torabi18-Dec-01 23:37
Saeed Torabi18-Dec-01 23:37 
GeneralAbout MSHTML Pin
14-Nov-01 21:34
suss14-Nov-01 21:34 
QuestionSearch a file? Pin
Rickard Andersson2014-Nov-01 20:59
Rickard Andersson2014-Nov-01 20:59 
AnswerRe: Search a file? Pin
Rassman15-Nov-01 2:47
Rassman15-Nov-01 2:47 
GeneralImplementing plugins Pin
Nevidimka14-Nov-01 20:28
Nevidimka14-Nov-01 20:28 
GeneralRe: Implementing plugins Pin
moliate16-Nov-01 5:39
moliate16-Nov-01 5:39 
GeneralRe: Implementing plugins Pin
Nevidimka18-Nov-01 18:26
Nevidimka18-Nov-01 18:26 
GeneralShellExecute Pin
Ralfy14-Nov-01 18:40
Ralfy14-Nov-01 18:40 
GeneralRe: ShellExecute Pin
Nish Nishant14-Nov-01 19:15
sitebuilderNish Nishant14-Nov-01 19:15 
GeneralRe: ShellExecute Pin
Ralfy14-Nov-01 21:01
Ralfy14-Nov-01 21:01 
GeneralRe: ShellExecute Pin
Nish Nishant15-Nov-01 2:10
sitebuilderNish Nishant15-Nov-01 2:10 
GeneralRe: ShellExecute Pin
Ralfy15-Nov-01 17:53
Ralfy15-Nov-01 17:53 
GeneralRe: ShellExecute Pin
Nish Nishant15-Nov-01 18:01
sitebuilderNish Nishant15-Nov-01 18:01 
GeneralRe: ShellExecute Pin
Carlos Antollini15-Nov-01 3:02
Carlos Antollini15-Nov-01 3:02 
GeneralChanging the font of the CTabCtrl Pin
Mark Donkers14-Nov-01 17:16
Mark Donkers14-Nov-01 17:16 
GeneralRe: Changing the font of the CTabCtrl Pin
Nish Nishant14-Nov-01 18:28
sitebuilderNish Nishant14-Nov-01 18:28 

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.