This is kind of a repost. I wanted to go ahead and register.
Thanks to the help I have received so far, I now am using FindWindow and FindwindowEx to get my listbox. The problem now is when I try and send a message it fails an IsWindow assert.
I decided to bypass the Cwnd::SendMessage which does the assert and went with ::SendMessage which takes the hwnd asa parameter. This works, (doesn't give me an error) but does not return any usefull info.
This just prints a block character.Code:HWND ChildWnd,Wnd; Cwnd *pParentWnd = FindWindow("Afx:40000:b...", NULL); ChildWnd=FindWindowEx( pParentWnd->m_hWnd,Null,"#32770",NULL); Wnd=FindWindowEx( ChildWnd, NULL, "ListBox", NULL); pDC->TextOut(1,1,(CString)::SendMessage(Wnd,LB_GETTEXT,0,0));
Any further help would be greatly appreciated.



LinkBack URL
About LinkBacks


