Click here to Skip to main content
15,921,577 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalrecommended reading Pin
andyblack14-Jan-03 13:14
andyblack14-Jan-03 13:14 
GeneralRe: recommended reading Pin
carrie14-Jan-03 23:25
carrie14-Jan-03 23:25 
GeneralPackaging and DLLs Pin
LukeV14-Jan-03 12:45
LukeV14-Jan-03 12:45 
GeneralRe: Packaging and DLLs Pin
Jim Crafton14-Jan-03 16:56
Jim Crafton14-Jan-03 16:56 
GeneralRe: Packaging and DLLs Pin
LukeV15-Jan-03 4:33
LukeV15-Jan-03 4:33 
GeneralRe: Packaging and DLLs Pin
Jim Crafton15-Jan-03 5:37
Jim Crafton15-Jan-03 5:37 
GeneralConsuming web services in a C++ app Pin
User 988514-Jan-03 11:58
User 988514-Jan-03 11:58 
Generalaccessing selected text in a fore ground window Pin
Gene Yu14-Jan-03 11:10
Gene Yu14-Jan-03 11:10 
Can any one tell me how to get to the selected text in an edit/richedit control (or any control having text that could be highlighted) of a foreground window from my own application? What about accessing a selected text in IE browser? One can see such use in Microsoft Boolshelf -- highlight any word in any window and then click on the QuickShelf icon in the system tray to get the meaning of the word! Tomasz Sowinski in the VC++ message board mentioned earlier using a combination of (1) calling the WIN32 API GETFOREGROUNDWINDOW to get a handle to the window and (2) sending the EM_GETSEL window message to get a pointer to the selected text. But I am not sure if this limits only to the case when the foreground window is itself a edit/richedit control.

Would appreciate very much any answers to these questions!

Gene Yu - gene4yu@yahoo.com
Generalattach document to an application Pin
aguest14-Jan-03 10:53
aguest14-Jan-03 10:53 
GeneralRe: attach document to an application Pin
xxhimanshu14-Jan-03 19:53
xxhimanshu14-Jan-03 19:53 
Generalcrashes in GetWindowPlacement Pin
ns14-Jan-03 10:49
ns14-Jan-03 10:49 
GeneralRe: crashes in GetWindowPlacement Pin
Nitron15-Jan-03 14:41
Nitron15-Jan-03 14:41 
GeneralGetActiveView - Pin
ns14-Jan-03 10:42
ns14-Jan-03 10:42 
Generalneed to get to Viewclass from mainframe Pin
ns14-Jan-03 10:31
ns14-Jan-03 10:31 
Questionhow do you attach a dialog resource to tab pages Pin
joshfl14-Jan-03 9:37
joshfl14-Jan-03 9:37 
AnswerRe: how do you attach a dialog resource to tab pages Pin
Nitron15-Jan-03 14:45
Nitron15-Jan-03 14:45 
QuestionHow do I draw a border around text? Pin
clintsinger14-Jan-03 9:29
clintsinger14-Jan-03 9:29 
AnswerRe: How do I draw a border around text? Pin
Chris Losinger14-Jan-03 10:15
professionalChris Losinger14-Jan-03 10:15 
GeneralRe: How do I draw a border around text? Pin
clintsinger14-Jan-03 11:27
clintsinger14-Jan-03 11:27 
GeneralRe: How do I draw a border around text? Pin
Chris Losinger14-Jan-03 12:24
professionalChris Losinger14-Jan-03 12:24 
AnswerRe: How do I draw a border around text? Pin
benjymous14-Jan-03 23:02
benjymous14-Jan-03 23:02 
GeneralSHBrowseForFolder in c code gives->'Release' : is not a member of 'IMalloc' Pin
KoftaMan14-Jan-03 9:19
KoftaMan14-Jan-03 9:19 
GeneralRe: SHBrowseForFolder in c code gives->'Release' : is not a member of 'IMalloc' Pin
Stefan Pedersen14-Jan-03 9:53
Stefan Pedersen14-Jan-03 9:53 
GeneralRe: SHBrowseForFolder in c code gives->'Release' : is not a member of 'IMalloc' Pin
KoftaMan14-Jan-03 10:00
KoftaMan14-Jan-03 10:00 
GeneralRe: SHBrowseForFolder in c code gives->'Release' : is not a member of 'IMalloc' Pin
KoftaMan14-Jan-03 10:20
KoftaMan14-Jan-03 10:20 

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.