Quote Originally Posted by cosmicvoid View Post
I was able to solve my issue in both XP and Win7 by creating a thread in the WM_INITDIALOG message of the OFN hook. The thread tries periodically to get the ListView handle and find + highlite the filename. Then it terminates, or bails out after 1 sec if not successful.
A similar but simpler approach would be to post a user message to the dialog from the WM_INITDIALOG message handler instead of creating a thread.