Click here to Skip to main content
16,004,782 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Dlls - Please Help me! Pin
20-Jan-02 6:15
suss20-Jan-02 6:15 
GeneralRe: Dlls - Please Help me! Pin
Rick York20-Jan-02 7:19
mveRick York20-Jan-02 7:19 
GeneralRe: Dlls - Please Help me! Pin
20-Jan-02 7:30
suss20-Jan-02 7:30 
GeneralRe: Dlls - Please Help me! Pin
Rick York20-Jan-02 14:19
mveRick York20-Jan-02 14:19 
GeneralRe: Dlls - Please Help me! Pin
Christopher Lord20-Jan-02 11:37
Christopher Lord20-Jan-02 11:37 
GeneralSendMessage Pin
Alan Blakely19-Jan-02 14:55
Alan Blakely19-Jan-02 14:55 
GeneralRe: SendMessage Pin
Christopher Lord20-Jan-02 11:44
Christopher Lord20-Jan-02 11:44 
GeneralRe: SendMessage Pin
Roger Allen21-Jan-02 2:36
Roger Allen21-Jan-02 2:36 
It sounds like you have made some of the required progress already. As your call to

CWnd * Handle=FindWindow("AIM_CSignOnWnd",NULL);

Is returning a valid pointer to the main window, from here, you can use this CWnd* pointer to get controls/windows on the main window. If you start up spy, you should be able to snoop the AOL window to find out the ID number of the window you want to set the text of, Once you have done that, you should be able to get a CWnd* pointer to it:

CWnd *pWindow = handle->GetDlgItem(id_of_control) ;
if (pWindow != NULL)
{
pWindow->SetWindowText("Some text") ;
}


I am not sure about how valid it is passing the string across, as you may need to mess around with memory in the system address space (which should be accessable from both applications).

Give it a try and see if it works.



Roger Allen
Sonork 100.10016

If I'm not breathing, I'm either dead or holding my breath.
GeneralVC.Net resource file always rebuilds Pin
Tim Smith19-Jan-02 13:17
Tim Smith19-Jan-02 13:17 
GeneralRe: VC.Net resource file always rebuilds Pin
Christian Graus19-Jan-02 13:59
protectorChristian Graus19-Jan-02 13:59 
GeneralRe: VC.Net resource file always rebuilds Pin
Tim Smith19-Jan-02 14:15
Tim Smith19-Jan-02 14:15 
GeneralArrays Pin
Alan Blakely19-Jan-02 11:32
Alan Blakely19-Jan-02 11:32 
GeneralRe: Arrays Pin
Christian Graus19-Jan-02 12:47
protectorChristian Graus19-Jan-02 12:47 
GeneralRe: Arrays Pin
Alan Blakely19-Jan-02 13:24
Alan Blakely19-Jan-02 13:24 
GeneralRe: Arrays Pin
Christian Graus19-Jan-02 22:56
protectorChristian Graus19-Jan-02 22:56 
GeneralRedimensioning Arrays Pin
DiegoValdevino19-Jan-02 11:16
DiegoValdevino19-Jan-02 11:16 
GeneralRe: Redimensioning Arrays Pin
Christian Graus19-Jan-02 11:25
protectorChristian Graus19-Jan-02 11:25 
GeneralRe: Redimensioning Arrays Pin
Prem Kumar19-Jan-02 11:30
Prem Kumar19-Jan-02 11:30 
GeneralRe: Redimensioning Arrays Pin
Christian Graus19-Jan-02 12:37
protectorChristian Graus19-Jan-02 12:37 
GeneralRe: Redimensioning Arrays Pin
l a u r e n19-Jan-02 23:05
l a u r e n19-Jan-02 23:05 
GeneralRe: Redimensioning Arrays Pin
Christian Graus19-Jan-02 23:31
protectorChristian Graus19-Jan-02 23:31 
GeneralToolbar graphic Pin
Jon Newman19-Jan-02 9:32
Jon Newman19-Jan-02 9:32 
GeneralMaintaining VC 5.0 and VC 6.0 Pin
Phil F19-Jan-02 9:14
Phil F19-Jan-02 9:14 
GeneralRe: Maintaining VC 5.0 and VC 6.0 Pin
Rick Crone24-Jan-02 10:21
Rick Crone24-Jan-02 10:21 
GeneralCD-RW questions...help needed Pin
Amit Dey19-Jan-02 8:17
Amit Dey19-Jan-02 8:17 

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.