Click here to Skip to main content
15,917,005 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralUsing an ActiveX control in VC++ Pin
Daed30-Apr-02 0:36
Daed30-Apr-02 0:36 
GeneralFile Transfer Problem Pin
Sameer Maggon30-Apr-02 0:10
Sameer Maggon30-Apr-02 0:10 
GeneralProcess Handle Pin
Phil.Benson29-Apr-02 23:15
professionalPhil.Benson29-Apr-02 23:15 
GeneralRe: Process Handle Pin
adara30-Apr-02 2:56
adara30-Apr-02 2:56 
GeneralRe: Process Handle Pin
Phil.Benson30-Apr-02 5:27
professionalPhil.Benson30-Apr-02 5:27 
GeneralRe: Process Handle Pin
Ram Cronus30-Apr-02 6:16
Ram Cronus30-Apr-02 6:16 
GeneralRe: Process Handle Pin
Phil.Benson30-Apr-02 6:25
professionalPhil.Benson30-Apr-02 6:25 
GeneralGetting control HWND to active Window from another program Pin
29-Apr-02 23:11
suss29-Apr-02 23:11 
I have a program (like a virtual keypad) which I wpould like to inject typed things into another process. What I have works if the program that gets it is the main window (like notepad etc). However, if I want to send things to a control like edit box INSIDE the window, I know that the window gets the message but the edit box does not.

This is due to the fact I get the HWND to the window of the target windo as

HWND wnd =::GetForegroundWindow()

Thus I tried to do this:

CWnd* pWnd = FromHandle(wnd);
CWnd* pFoc = pWnd->GetFocus();


I then use pFoc->m_hWnd in the AttachTHreadINput call

What is wrong here. I get some can not read from loc ??? error. What would I need to do to get the HWND to the actual control inside the window that has the focus FROM another program?

THanks for any advise.
GeneralSetup a Printer Setup Dialog Pin
29-Apr-02 23:05
suss29-Apr-02 23:05 
Generalversion control for Visual C++ Pin
29-Apr-02 22:30
suss29-Apr-02 22:30 
GeneralRe: version control for Visual C++ Pin
Anna-Jayne Metcalfe29-Apr-02 23:09
Anna-Jayne Metcalfe29-Apr-02 23:09 
GeneralRe: version control for Visual C++ Pin
Wolfram Steinke30-Apr-02 1:23
Wolfram Steinke30-Apr-02 1:23 
QuestionQuestion of the year: what does #pragma start_map_region do? Pin
29-Apr-02 22:18
suss29-Apr-02 22:18 
AnswerRe: Question of the year: what does #pragma start_map_region do? Pin
moliate30-Apr-02 7:09
moliate30-Apr-02 7:09 
GeneralMAC Address - Ethernet address Pin
Sameer Maggon29-Apr-02 21:56
Sameer Maggon29-Apr-02 21:56 
GeneralRe: MAC Address - Ethernet address Pin
29-Apr-02 22:32
suss29-Apr-02 22:32 
QuestionWhat's wrong with my code? Pin
29-Apr-02 21:35
suss29-Apr-02 21:35 
AnswerRe: What's wrong with my code? Pin
Niklas L29-Apr-02 23:46
Niklas L29-Apr-02 23:46 
GeneralRe: What's wrong with my code? Pin
30-Apr-02 16:43
suss30-Apr-02 16:43 
Questionhow to judge IE have opened a page? Pin
legen xie29-Apr-02 21:17
legen xie29-Apr-02 21:17 
AnswerRe: how to judge IE have opened a page? Pin
moliate30-Apr-02 6:54
moliate30-Apr-02 6:54 
QuestionTransmitFile - Have anyone used it??? Pin
Sameer Maggon29-Apr-02 21:15
Sameer Maggon29-Apr-02 21:15 
GeneralRegistry Handling Pin
Sameer Maggon29-Apr-02 21:00
Sameer Maggon29-Apr-02 21:00 
GeneralRe: Registry Handling Pin
Jack Handy29-Apr-02 21:53
Jack Handy29-Apr-02 21:53 
GeneralRe: Registry Handling Pin
Sameer Maggon29-Apr-02 21:54
Sameer Maggon29-Apr-02 21:54 

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.