Share via

IShellBrowser::BrowseObject browsing complete notify

thexujie 1 Reputation point
2021-09-01T07:23:18.307+00:00

I'm using IShellBrowser::BrowseObject to navigate a shell view to another folder. and then, I want to use IShellView::SelectItem to select one file in the folder.
But I found IShellView::SelectItem will failed if I call this API immediately after IShellBrowser::BrowseObject.
Currently I start a timer to excute SelectItem until it success.
Do we have some reasonable way to do this?

Windows development | Windows API - Win32

1 answer

Sort by: Most helpful
  1. Xiaopo Yang - MSFT 12,736 Reputation points Microsoft External Staff
    2021-09-01T08:30:30.497+00:00

    According to the question, you need to wait for changes using SHCNF_FLUSH.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.