Click here to Skip to main content
15,914,225 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Convert from CObject to inherited class Pin
Rajesh match17-Oct-05 19:16
Rajesh match17-Oct-05 19:16 
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 
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 as i'm new in this kind of app's i'll take his word on that
so i was wondering if there could be a way to make a list of all the child elements of the conversation windows and try to retrieve the text from the new textbox element whichever it is now

i already have coded a way to retrieve all the windows titles and put them in a list so i think there might be a way to retrieve all the elements that make that window as i select it from the list

OnInitDialog(){<br />
...<br />
EnumWindows(EnumWindowCallBack, (LPARAM)::GetDlgItem(m_hWnd, IDC_LIST_RUNNING));<br />
...<br />
}<br />
<br />
static BOOL CALLBACK EnumWindowCallBack(HWND hwnd, LPARAM lParam)<br />
{<br />
HWND hWnd = (HWND)lParam;<br />
CString strTitle;<br />
DWORD wndPid;<br />
<br />
if (IsWindowVisible(hwnd))<br />
{<br />
GetWindowThreadProcessId(hwnd, &wndPid);<br />
CWnd::FromHandle(hwnd)->GetWindowText(strTitle);<br />
strTitle.TrimRight();<br />
if (!strTitle.IsEmpty())<br />
{<br />
CListBox *pListBox = (CListBox *)CWnd::FromHandle(hWnd);<br />
pListBox->AddString(strTitle);<br />
if((strTitle.Find("- Conversation",0))!=-1){<br />
::MessageBox(hWnd,"Found","MSN",MB_OK);<br />
EnumChildWindows(hWnd, ChildWndProc,0);<br />
}<br />
}<br />
}<br />
<br />
// Keep enumerating<br />
return TRUE;<br />
}


i think you have to use EnumChildWindows and EnumChildProc but i don't have a clue on how to use them. actually i have a hard time writing the above code so if anyone could help me with this or tell me where to find some good examples on this subject i'll really appreciate it

other way i was told i could retrieve the conversations from msn messenger was making a hook for msn messenger events and using that data to make a log. if someone knows something about this plz TELL ME!! cuz i got to have this app running by december and all the other apps and examples i have found in internet just doesn't work with the new versions of msn messenger

i'm using Visual C++ SP6, W2K and MSN Messenger 7.0
AnswerRe: get msn conversation window elements Pin
David Crow17-Oct-05 7:59
David Crow17-Oct-05 7:59 
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 

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.