Hello,
I'm working on a BHO for IE9 with VS2010.
My goal is to get the source code of the webpages I visit.
I have so far mostly used the following articles:
Building Browser Helper Objects with Visual Studio 2005
http://msdn.microsoft.com/en-us/library/bb250489(v=vs.85).aspx
Browser Helper Objects: The Browser the Way You Want It
http://msdn.microsoft.com/en-us/library/bb250436.aspx
I managed to do what's given in 1st article above. So I currently have a BHO that pops up a message box when the page is loaded, and removes images from the visited webpages.
What I want to do is what's explained in the 2nd article, but I'm struggling with the following part:
// Enable changes to the text
HWND hwnd = m_dlgCode.GetDlgItem(IDC_TEXT);
EnableWindow(hwnd, true);
hwnd = m_dlgCode.GetDlgItem(IDC_APPLY);
EnableWindow(hwnd, true);
m_dlgCode is undefined
>> I think I have to add it to the CViewSource class, but I'm not sure of what type this identifier should be. A class that has the GetDlgItem() method, I guess.
IDC_TEXT and
IDC_APPLY are undefined too
>> Same for those. I have no idea of where they come from, and not sure of the values (const int ?) they should be assigned.
Or if you have other solutions to get the source code from visited webpages with a BHO, I'd be happy to see them. :)
Thanks in advance!
Chris.