Click here to Skip to main content
15,881,742 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionDifference between CWnd and CView Pin
prithaa16-Apr-09 2:01
prithaa16-Apr-09 2:01 
AnswerRe: Difference between CWnd and CView Pin
Iain Clarke, Warrior Programmer16-Apr-09 4:10
Iain Clarke, Warrior Programmer16-Apr-09 4:10 
Questioncopying text from the webpages or pdfs which are selected by mouse Pin
aravind.sn16-Apr-09 0:47
aravind.sn16-Apr-09 0:47 
AnswerRe: copying text from the webpages or pdfs which are selected by mouse [modified] Pin
_AnsHUMAN_ 16-Apr-09 1:09
_AnsHUMAN_ 16-Apr-09 1:09 
GeneralRe: copying text from the webpages or pdfs which are selected by mouse Pin
Rajesh R Subramanian16-Apr-09 1:28
professionalRajesh R Subramanian16-Apr-09 1:28 
GeneralRe: copying text from the webpages or pdfs which are selected by mouse Pin
_AnsHUMAN_ 16-Apr-09 1:44
_AnsHUMAN_ 16-Apr-09 1:44 
AnswerRe: copying text from the webpages or pdfs which are selected by mouse Pin
Rajesh R Subramanian16-Apr-09 1:32
professionalRajesh R Subramanian16-Apr-09 1:32 
AnswerRe: copying text from the webpages or pdfs which are selected by mouse Pin
Iain Clarke, Warrior Programmer16-Apr-09 1:36
Iain Clarke, Warrior Programmer16-Apr-09 1:36 
This is not an easy challenge.

1/ Detect the key being pressed! Keyboard hook, or a global hot key (see RegisterHotKey) which I'd recommend more.

2/ Then you have to get the window user the mouse. (RealChildWindowFromPoint)

3/ Then you have to extract the actual text. The way of doing this will vary from application to application. Firefox will be different from iexplore. FoxitReader will be different from Acrobat.

4/ You could get the pixel in the window, maybe using WM_PRINT, but then you'd have to OCR them to get the text...


5/ pdf and html viewers already have clipboard filling functions... It's a lot less work to use them!

Good luck though, as this would be a major challenge to a pro. Maybe a semi-newbie who isn't afraid is the best person!

Iain.

In the process of moving to Sweden for love (awwww).
If you're in Scandinavia and want an MVP on the payroll (or happy with a remote worker), give me a job! http://cv.imcsoft.co.uk/[^]

AnswerRe: copying text from the webpages or pdfs which are selected by mouse Pin
ParagPatel16-Apr-09 2:11
ParagPatel16-Apr-09 2:11 
QuestionEdit Box VScrool Problem. Pin
zakkas248316-Apr-09 0:30
zakkas248316-Apr-09 0:30 
Questionidentifier of dialog window and the name of the class Pin
durban216-Apr-09 0:25
durban216-Apr-09 0:25 
AnswerRe: identifier of dialog window and the name of the class Pin
_AnsHUMAN_ 16-Apr-09 0:38
_AnsHUMAN_ 16-Apr-09 0:38 
QuestionMixing Debug and Release during execution Pin
Epi16-Apr-09 0:15
Epi16-Apr-09 0:15 
AnswerRe: Mixing Debug and Release during execution Pin
Rajesh R Subramanian16-Apr-09 0:37
professionalRajesh R Subramanian16-Apr-09 0:37 
GeneralRe: Mixing Debug and Release during execution Pin
Epi16-Apr-09 0:41
Epi16-Apr-09 0:41 
GeneralRe: Mixing Debug and Release during execution Pin
Rajesh R Subramanian16-Apr-09 0:43
professionalRajesh R Subramanian16-Apr-09 0:43 
GeneralRe: Mixing Debug and Release during execution Pin
Epi16-Apr-09 0:50
Epi16-Apr-09 0:50 
GeneralRe: Mixing Debug and Release during execution Pin
Rajesh R Subramanian16-Apr-09 1:25
professionalRajesh R Subramanian16-Apr-09 1:25 
GeneralWelcome again in the CP's members memorable quotes! Pin
CPallini16-Apr-09 1:48
mveCPallini16-Apr-09 1:48 
GeneralRe: Welcome again in the CP's members memorable quotes! Pin
Rajesh R Subramanian16-Apr-09 1:55
professionalRajesh R Subramanian16-Apr-09 1:55 
GeneralRe: Welcome again in the CP's members memorable quotes! Pin
CPallini16-Apr-09 2:11
mveCPallini16-Apr-09 2:11 
GeneralRe: Mixing Debug and Release during execution Pin
Epi16-Apr-09 2:01
Epi16-Apr-09 2:01 
GeneralRe: Mixing Debug and Release during execution Pin
Rajesh R Subramanian16-Apr-09 2:10
professionalRajesh R Subramanian16-Apr-09 2:10 
GeneralRe: Mixing Debug and Release during execution Pin
Epi16-Apr-09 2:18
Epi16-Apr-09 2:18 
JokeRe: Mixing Debug and Release during execution Pin
CPallini16-Apr-09 2:20
mveCPallini16-Apr-09 2: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.