|
-
October 22nd, 2012, 08:21 AM
#13
Re: [RESOLVED] Highlite entry in GetOpenFileName() list, programmatically.
 Originally Posted by cosmicvoid
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.
Cheers, D Drmmr
Please put [code][/code] tags around your code to preserve indentation and make it more readable.
As long as man ascribes to himself what is merely a posibility, he will not work for the attainment of it. - P. D. Ouspensky
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|