CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 15 of 15

Threaded View

  1. #1
    Join Date
    Apr 2010
    Western WA, USA

    Highlite entry in GetOpenFileName() list, programmatically.

    I'm using the GetOpenFileName() common dialog, with no problems. Now I want to add a feature of making the default filename be supplied (with the last opened filename). This is not an issue, per se, as the filename shows up in the File Name edit field. But I also would like to have that file entry in the list be automatically selected (highlited), scrolling the list as necessary to make the selected name visible.

    After looking through the VC8 help files on this topic, I don't see any way to make the OFN dialog select an entry by sending a message, or any other method. Can this be done?

    I really don't want to re-invent the OFN dialog just to accomplish this.
    Last edited by cosmicvoid; October 21st, 2012 at 12:10 AM. Reason: set to not resolved

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

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.