PlanetSquires Forums

Please login or register.

Login with username, password and session length
Advanced search  

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

Sergio Tallone

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

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
Logged

TechSupport

  • 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 http://planetsquires.com/support/index.php?topic=2434.msg12144#msg12144

Please let me know if that solves your focus problem.

Logged