Click here to Skip to main content
15,897,187 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralOooops Pin
CPallini3-Mar-08 9:16
mveCPallini3-Mar-08 9:16 
GeneralRe: Oooops Pin
Mark Salsbery3-Mar-08 9:23
Mark Salsbery3-Mar-08 9:23 
GeneralCListCtrl checkbox problem Pin
followait2-Mar-08 23:26
followait2-Mar-08 23:26 
GeneralAccessing text from the client area of a win32 window other than EditControl type windows Pin
glyfyx2-Mar-08 23:21
glyfyx2-Mar-08 23:21 
QuestionRe: Accessing text from the client area of a win32 window other than EditControl type windows Pin
David Crow3-Mar-08 3:10
David Crow3-Mar-08 3:10 
GeneralRe: Accessing text from the client area of a win32 window other than EditControl type windows Pin
glyfyx6-Mar-08 10:44
glyfyx6-Mar-08 10:44 
GeneralRe: Accessing text from the client area of a win32 window other than EditControl type windows Pin
Mark Salsbery3-Mar-08 6:34
Mark Salsbery3-Mar-08 6:34 
GeneralRe: Accessing text from the client area of a win32 window other than EditControl type windows Pin
glyfyx6-Mar-08 10:41
glyfyx6-Mar-08 10:41 
Thanks a lot Mark!

I understand what you're saying - that once text is onscreen, it's just pixels. I still wonder how, for example, context sensitive help works.

Suppose I have 50 pages of source code available onscreen in my IDE and I place the caret on a string *anywhere* in the code and press F1. I will get help related to the string near/on the caret. The F1 support code must somehow obtain the ansi/unicode/whatever equivalent of the onscreen string in order to lookup and return information related to the string.

The only way I imagine F1 support code can accomplish this is either:
1 - to maintain an internal text copy of the entire source code and use the caret's x,y point to map into its text-copy to the exact text equivalent of the screen's image of the string;
2 - or as you suggest, the F1 code must ocr the pixels in the immediate vicinity of the caret to decifer its string equivalent.

Somehow, neither sounds very appealing. Especially alternative 1 - wow - can you imagine having to keep the internal copy in synch with the myriad screen operations possible? Your ocr suggestion seems more reasonable (in comparison.)

Could it be that the text-entry part of an IDE is the client area of an EditControl class window, permitting F1 code to use EM_* msgs? What about all the other text-oriented applications, text editors, WPs, publishing apps, IDEs, spreadsheets, email, etc, are they all EditContol client areas?

Hmm.. maybe I should write some code to find out what are the various window classes currently running in my machine. I assume there are API calls that'll supply this information? There must be one that does that.

At any rate, I'm very happy to receive your answers even if they're not ones I'd been hoping for - much appreciated!

glyfyx
GeneralRe: Accessing text from the client area of a win32 window other than EditControl type windows Pin
Mark Salsbery6-Mar-08 11:55
Mark Salsbery6-Mar-08 11:55 
GeneralA simple threading problem.. Pin
ptr2void2-Mar-08 22:44
ptr2void2-Mar-08 22:44 
GeneralRe: A simple threading problem.. Pin
CPallini3-Mar-08 0:10
mveCPallini3-Mar-08 0:10 
GeneralRe: A simple threading problem.. Pin
Mark Salsbery3-Mar-08 6:49
Mark Salsbery3-Mar-08 6:49 
Generalloop control Pin
rp_suman2-Mar-08 21:49
rp_suman2-Mar-08 21:49 
GeneralRe: loop control Pin
Cedric Moonen2-Mar-08 21:52
Cedric Moonen2-Mar-08 21:52 
GeneralRe: loop control Pin
rp_suman3-Mar-08 0:41
rp_suman3-Mar-08 0:41 
GeneralRe: loop control Pin
GauranG Shah2-Mar-08 23:24
GauranG Shah2-Mar-08 23:24 
GeneralRe: loop control Pin
rp_suman3-Mar-08 0:51
rp_suman3-Mar-08 0:51 
GeneralRe: loop control Pin
BadKarma3-Mar-08 1:54
BadKarma3-Mar-08 1:54 
GeneralRe: loop control Pin
rp_suman3-Mar-08 2:27
rp_suman3-Mar-08 2:27 
GeneralSkipws Pin
George_George2-Mar-08 21:28
George_George2-Mar-08 21:28 
QuestionRe: Skipws Pin
Maximilien3-Mar-08 0:45
Maximilien3-Mar-08 0:45 
GeneralRe: Skipws Pin
George_George3-Mar-08 0:55
George_George3-Mar-08 0:55 
Questiondependent DLL intresting? Pin
Ravinder Are2-Mar-08 20:03
Ravinder Are2-Mar-08 20:03 
AnswerRe: dependent DLL intresting? Pin
Naveen2-Mar-08 21:15
Naveen2-Mar-08 21:15 
QuestionHow to convert BMP to multipage TIFF file Pin
VmTHiru2-Mar-08 19:46
VmTHiru2-Mar-08 19:46 

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.