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

C / C++ / MFC

 
Questionuse of C / C++ Pin
dj852-Mar-08 23:48
dj852-Mar-08 23:48 
GeneralRe: use of C / C++ Pin
Hamid_RT2-Mar-08 23:55
Hamid_RT2-Mar-08 23:55 
GeneralRe: use of C / C++ Pin
CPallini3-Mar-08 0:09
mveCPallini3-Mar-08 0:09 
GeneralRe: use of C / C++ Pin
Mark Salsbery3-Mar-08 6:23
Mark Salsbery3-Mar-08 6:23 
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 
MSDN tells me only EditControl class windows provide the means to manipulate text strings displayed in their client area. EG, EM_SETSEL, EM_REPLACESEL, messages.

Which is fine, but I need a more general solution. I need to access a text string displayed in a non-EditControl type window's client area.

It's obvious such code exists, because if I double-click text string T in a text-enabled but non-EditControl class window A of arbitrary app A, T will be highlighted in most if not all cases. When I press Ctrl-C, T will be copied to the clipboard.

Some code, no doubt Windows code, located the string of highlighted characters, grabbed a copy of it, and stuck it onto the clipboard.

My question is: What do I need to know in order to write code that does the same thing under my control of my pgm? Or is such code available somewhere that I could adapt, and if so, how can I acquire it? Sometimes there are undocumented Windows routines that are available - maybe something I can use?

What do you think? Is there a simple answer I'm too inexperienced to realize - possibly as I'm a win32 intermediate newbie at best.

I've looked and looked but can't find anything helpful.
Any information, suggestions, clues, references, etc, will be very much appreciated.

Big thanks!

/glyfyx
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 
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 

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.