Hi,
I have created a simple PDF lister using the instructions of the Firefly tutorial related to the SHDOCVW.DLL ocx.
The program lists the PDF's names of a folder in a listview and opens them using the browser control placed to the right of the listview. The keyboard input for the listview is managed in the FUNCTION MAINFORM_LVPDF_LVN_ITEMCHANGED by checking the iItem member of the NM_LISTVIEW UDT.
The problem is that when a file is loaded in the browser, the listview loses the focus and I’m not able to set it again on the listview.
I have also tried to insert FF_CONTROL_SETFOCUS (List view handler) in the body of the function ShellDWebBrowserEvents1_NavigateComplete, but it doesn't work and I imagine that the solution is more complicated.
Can anyone help me?
thanks!
Sergio
Try setting the focus in NM_CLICK per the post at http://planetsquires.com/support/index.php?topic=2434.msg12144#msg12144
Please let me know if that solves your focus problem.