Click here to Skip to main content
15,920,708 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questiondeprecated functions [modified] Pin
Waldermort13-Feb-07 12:14
Waldermort13-Feb-07 12:14 
AnswerRe: deprecated functions Pin
PJ Arends13-Feb-07 12:54
professionalPJ Arends13-Feb-07 12:54 
GeneralRe: deprecated functions Pin
Waldermort13-Feb-07 13:11
Waldermort13-Feb-07 13:11 
QuestionGetting text under the cursor Pin
RandyS13-Feb-07 12:00
RandyS13-Feb-07 12:00 
AnswerRe: Getting text under the cursor Pin
Christian Graus13-Feb-07 12:13
protectorChristian Graus13-Feb-07 12:13 
GeneralRe: Getting text under the cursor Pin
RandyS14-Feb-07 3:11
RandyS14-Feb-07 3:11 
GeneralRe: Getting text under the cursor Pin
Mark Salsbery14-Feb-07 6:43
Mark Salsbery14-Feb-07 6:43 
GeneralRe: Getting text under the cursor Pin
Christian Graus14-Feb-07 9:27
protectorChristian Graus14-Feb-07 9:27 
RandyS wrote:
When I use DrawText to put the text in the control, how can I tell where each word is located in that text?


There is an API which tells you the size of the text you're rendering, you'd need to render one word at a time and keep track of how big each one is on screen, to work out which word holds which co-ordinates.

RandyS wrote:
The only idea I had was to manually figure out each word location when placing them in the control and keep a map of the rectangular area used for each word.


Yes, that's about it.

RandyS wrote:
But, this would be a lot of work, and memory


A little work, the memory usage is trivial.

RandyS wrote:
and I was hoping there would be an easier way


No. There isn't.


Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog

QuestionDisableProcessWindowsGhosting in C++? Pin
Debs*13-Feb-07 11:40
Debs*13-Feb-07 11:40 
QuestionSleep() issues Pin
pblais13-Feb-07 10:17
pblais13-Feb-07 10:17 
AnswerRe: Sleep() issues Pin
Christian Graus13-Feb-07 10:36
protectorChristian Graus13-Feb-07 10:36 
AnswerRe: Sleep() issues Pin
Ravi Bhavnani13-Feb-07 10:42
professionalRavi Bhavnani13-Feb-07 10:42 
AnswerRe: Sleep() issues Pin
Mark Salsbery13-Feb-07 10:48
Mark Salsbery13-Feb-07 10:48 
GeneralRe: Sleep() issues Pin
pblais14-Feb-07 3:00
pblais14-Feb-07 3:00 
GeneralRe: Sleep() issues Pin
Mark Salsbery14-Feb-07 6:05
Mark Salsbery14-Feb-07 6:05 
GeneralRe: Sleep() issues Pin
pblais15-Feb-07 2:37
pblais15-Feb-07 2:37 
AnswerRe: Sleep() issues Pin
Stephen Hewitt13-Feb-07 10:58
Stephen Hewitt13-Feb-07 10:58 
AnswerRe: Sleep() issues Pin
led mike13-Feb-07 11:19
led mike13-Feb-07 11:19 
GeneralRe: Sleep() issues Pin
Mark Salsbery13-Feb-07 11:27
Mark Salsbery13-Feb-07 11:27 
GeneralRe: Sleep() issues Pin
pblais14-Feb-07 3:01
pblais14-Feb-07 3:01 
GeneralRe: Sleep() issues Pin
led mike14-Feb-07 4:13
led mike14-Feb-07 4:13 
GeneralRe: Sleep() issues Pin
Mark Salsbery14-Feb-07 6:06
Mark Salsbery14-Feb-07 6:06 
GeneralRe: Sleep() issues Pin
led mike14-Feb-07 6:49
led mike14-Feb-07 6:49 
GeneralRe: Sleep() issues Pin
Mark Salsbery14-Feb-07 7:03
Mark Salsbery14-Feb-07 7:03 
AnswerRe: Sleep() issues Pin
Michael Dunn13-Feb-07 14:31
sitebuilderMichael Dunn13-Feb-07 14:31 

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.