Click here to Skip to main content
15,913,773 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Convert from CObject to inherited class Pin
bugDanny18-Oct-05 5:47
bugDanny18-Oct-05 5:47 
GeneralRe: Convert from CObject to inherited class Pin
Rajesh match19-Oct-05 1:54
Rajesh match19-Oct-05 1:54 
QuestionC++ DLL vs MFC DLL Pin
Tom Wright17-Oct-05 8:18
Tom Wright17-Oct-05 8:18 
AnswerRe: C++ DLL vs MFC DLL Pin
ThatsAlok17-Oct-05 18:34
ThatsAlok17-Oct-05 18:34 
GeneralRe: C++ DLL vs MFC DLL Pin
Tom Wright18-Oct-05 3:53
Tom Wright18-Oct-05 3:53 
GeneralRe: C++ DLL vs MFC DLL Pin
ThatsAlok18-Oct-05 4:08
ThatsAlok18-Oct-05 4:08 
Questionget msn conversation window elements Pin
smargada17-Oct-05 7:27
smargada17-Oct-05 7:27 
AnswerRe: get msn conversation window elements Pin
David Crow17-Oct-05 7:59
David Crow17-Oct-05 7:59 
smargada wrote:


i posted a message last night about help retrieving the conversation from a msn messenger windows using the clipboard and searching in the child elements for a RichEdit20W or RichEdit20A and copying the text but user ThatsAlok replied me that msn messenger doesn't use those kind of controls


I'm using Windows Messenger v4.7 and, using Spy++, confirmed that RichEdit20W is indeed the control that is used.

Try this:

HWND hWndParent = ::FindWindow(_T("IMWindowClass"), NULL);
if (hWndParent != NULL)
{
    HWND hWnd = FindWindowEx(hWndParent, NULL, _T("RichEdit20W"), NULL);
    if (hWnd != NULL)
    {
        // You'll need to employ a better method for finding the second of these controls.  I was only proving a concept
        hWnd = FindWindowEx(hWndParent, hWnd, _T("RichEdit20W"), NULL);
        
        TCHAR szText[1024];
        if (::SendMessageW(hWnd, WM_GETTEXT, sizeof(szText), (LPARAM) szText) > 0)
            ...
    }
}



"Take only what you need and leave the land as you found it." - Native American Proverb



-- modified at 9:33 Tuesday 18th October, 2005
AnswerRe: get msn conversation window elements Pin
ThatsAlok17-Oct-05 18:25
ThatsAlok17-Oct-05 18:25 
GeneralRe: get msn conversation window elements Pin
smargada18-Oct-05 4:32
smargada18-Oct-05 4:32 
GeneralRe: get msn conversation window elements Pin
ThatsAlok18-Oct-05 4:38
ThatsAlok18-Oct-05 4:38 
QuestionNeed to detect logged in users - NOT using GetUserName/Ex Pin
Xori17-Oct-05 7:11
Xori17-Oct-05 7:11 
AnswerRe: Need to detect logged in users - NOT using GetUserName/Ex Pin
David Crow17-Oct-05 7:34
David Crow17-Oct-05 7:34 
GeneralRe: Need to detect logged in users - NOT using GetUserName/Ex Pin
Xori17-Oct-05 7:47
Xori17-Oct-05 7:47 
QuestionRe: Need to detect logged in users - NOT using GetUserName/Ex Pin
David Crow17-Oct-05 8:18
David Crow17-Oct-05 8:18 
GeneralRe: Need to detect logged in users - NOT using GetUserName/Ex Pin
ThatsAlok17-Oct-05 18:15
ThatsAlok17-Oct-05 18:15 
Questionkeybd_event() in explorer/firefox/ie and the like Pin
dr_illbatting17-Oct-05 7:05
dr_illbatting17-Oct-05 7:05 
AnswerRe: keybd_event() in explorer/firefox/ie and the like Pin
Anonymous17-Oct-05 20:11
Anonymous17-Oct-05 20:11 
QuestionHow to get the right URL before navigating the web page in the CHtmlView? Pin
superhandwolf17-Oct-05 5:52
superhandwolf17-Oct-05 5:52 
Questionstatic control colouring Pin
FarPointer17-Oct-05 5:51
FarPointer17-Oct-05 5:51 
AnswerRe: static control colouring Pin
David Crow17-Oct-05 7:27
David Crow17-Oct-05 7:27 
QuestionEarly Binding Pin
itkid17-Oct-05 5:36
itkid17-Oct-05 5:36 
QuestionQuestion on folder security permissions Pin
shiva e balasubramaniam17-Oct-05 4:44
shiva e balasubramaniam17-Oct-05 4:44 
QuestionClass Construction Problem Pin
bugDanny17-Oct-05 4:39
bugDanny17-Oct-05 4:39 
AnswerRe: Class Construction Problem Pin
toxcct17-Oct-05 4:50
toxcct17-Oct-05 4:50 

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.