PlanetSquires Forums

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Help with listview focus  (Read 542 times)

Sergio Tallone

  • Guest
Help with listview focus
« on: March 27, 2008, 07:03:20 AM »

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?




  • Guest
Re: Help with listview focus
« Reply #1 on: March 27, 2008, 08:09:41 AM »

Try setting the focus in NM_CLICK per the post at

Please let me know if that solves your focus problem.