Asked by:
IExplorerBrowser FVO_CUSTOMORDERING not persistent

Question
-
I'm using the IExplorerBrowser interface. I set up a property bag (IExplorerbrowser::SetPropertyBag). Implementing the IExplorerBrowserEvents interface, handling OnViewCreated, I'm retrieving the IFolderViewOptions interface from my Explorerbrowser instance. I then set up FVO_CUSTOMORDER. So far, so good, I can order freely the elements in my view window. If I navigate, and come back to a folder freely ordered, the elements are sorted by name not freely anymore. This was not the case with the same code running under Windows 7 (Windows 8 has not been tested). I checked the folder view options I'm retrieving handling OnViewCreated. If running the same session, I see FVO_CUSTOMORDER set although the view is sorted by name. If I'm running a new session of my piece of software, I get FVO_DEFAULT.
Another issue which might be related to this one is once I have instanciated the first time my ExplorerBrowser instance and navigated to a first folder from the desktop (initial folder), the custome ordeor option is not applied although set up while handling OnViewCreated. If I navigate back to the same folder during the session, the custom order option is then appllied (but still not persistent).
- Moved by Nedeltcho PopovMicrosoft contingent staff Friday, August 30, 2019 5:39 AM Wrong forum, moved from French MSDN
- Moved by Drake_WuMicrosoft contingent staff Wednesday, September 4, 2019 2:02 AM
All replies
-
Hi, Peuquet
Please provide a Minimal, Reproducible Example, so that I can reproduce your problem and help you accurately.
Best regards,
Strive
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com. -
Hi,
Thanks for your answer. You can actually check and refine the issue diagnostics by running a "Disable full row selection" script or modify yourself the Windows registry to achieve the same. This will allow you to order your icons freely under Windows explorer. You will see that you are able to do it but also that Windows 10 does not remember the icons order for a folder.
Here's a link about disabling this option: https://www.winhelponline.com/blog/disable-full-row-select-auto-arrange-folders-windows-10/
As far as i can tell, some options are not recorded in property bags, custom or not. I'm quite sure this is restricted to the IFolderViewOption interface Under Windows 10. Unfortunately, Microsoft has not documented any change or deprecation. So, I qualify it a bug.
I'll try to find sometime tonight to build a minimal example.
All the best,
Eric
-
-
Hi, Peuquet
Thank you for your quick response.
You can upload the sample to GitHub and send me the corresponding link.
If you don't know how to upload to github, please refer this.
Best regards,
Strive
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.- Edited by Strive Sun-MSFTMicrosoft contingent staff Tuesday, September 3, 2019 1:41 AM
-
Hello,
Here's your link:
You'll find the project on Github, Peuquet, Cx.
Sorry to not be able to provide you a direct link but MSDN refuses it until my account has been verified(?).
It is public (I would prefer it private so if I can declare you as a Github collaborator, that would be nice).
The important lines in Explorer.cpp (there's a single source file) are:
(140) hr = m_spExplorerBrowser->SetPropertyBag(L"MyPropertyBag"); // Sets the property bag up
(336) hr = pfolderViewOptions->SetFolderViewOptions(FVO_CUSTOMORDERING, FVO_CUSTOMORDERING); // sets the folder view options;
When running the piece of software, you will notice at first that although FVO_CUSTOMORDER is set up, it is not taken into account. If you navigate once out of the first folder browsed and then back, you will see this setting applied.
Then, when you'll be able to order freely the shell items, you will find when moving away from a freely ordered folder and back to it that your freely defined order is not kept.
All the best and thanks for your help,
Peuquet
- Edited by Peuquet Tuesday, September 3, 2019 9:10 AM
-
Hi, Peuquet
Since you are developing MFC application , I'll move to the MFC forum for more professional support.
Best regards,
Strive
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com. -
Hello,
Thank you for posting here.
According to your description, we reproduce your error. Considering your situation on Win7, we think this is an issue. Please submit your question on Developer Community. Here is the link:https://developercommunity.visualstudio.com/spaces/8/index.html
Best Regards,
Suarez Zhou
-
-
-
-
-
Hi,
This was posted to the dev Community at first. Here's the answer I had:
Cheney Wang [MSFT] sur 28/08/2019Thank you for your feedback. We have determined that this issue belongs to the Windows platform. Please provide feedback using Windows 10 feedback hub store app.
So, I installed the Windows feedback app and reported my problem. Once there, my post was moved by Nedeltcho Popov here as he considered my post was in a wrong forum. I've seen also that it has been moved 13 hours ago by drake-Wu from Micorsoft I don't know where... And now you ask me to move it back to Windows 10 feedback...
I'm sorry but i'm a little lost...
-
Hi,
I'm sorry I didn't reply to your message in time.
>>I've found my original post in the Dev Community forum, titled iexplorer-propertybag-issue.
I didn't find the link to the issue according to your title. Would it be convenient for you to send me the link of the issue?
Best Regards,
Suarez Zhou
- Edited by Suarez-ZhouMicrosoft contingent staff Thursday, September 5, 2019 2:12 AM
-
Hi,
I get an error message saying that "body text cannot contain images or links until mwe are able to verify your account" when pasting the link. I don't know why it is not possible to verify my account.
So, you'll find it on the visual studio developpers community site.
it is located under content, problem,712362.
The title is iexploreerbrowser-property-bag-issue.
Thanks
- Edited by Peuquet Thursday, September 5, 2019 12:28 PM
-
-
-
Hi,
>>I get an error message saying that "body text cannot contain images or links until mwe are able to verify your account" when pasting the link. I don't know why it is not possible to verify my account.
Check the link below to verify your account, and you will be able to post link and image.
Best Regards,
Suarez Zhou
-
Hi,
I'm sorry I'm still trying to test this issue under win7 win8 and win10. I still can't give a definite answer because that I can't tell if this was intentionally set up by Microsoft. Win10 has made many changes for users compared with win7 and win8, and this issue seems to be part of it.
Best Regards,
Suarez Zhou
-
-
Hi,
I realized sorting files randomly on Win10 by change regedit, as shown in the figure below, but I also noticed that Win10 did not save the result of this drag. In another way, did Win10 have an automatic sorting action before access the folder?(I turn off numerical sorting of file explorer in gpedit.msc, but it has no effect)
The gif above is quite different from Win7 and XP, Win7 and XP save the results and have no change when we access it again.
So I think it's some new features of Win10 that led to this issue.
Best Regards,
Suarez Zhou
- Edited by Suarez-ZhouMicrosoft contingent staff Thursday, September 12, 2019 10:10 AM
-
-
Hi Suarez,
I've made a test installing a pre Creator's Update of Windows 10 on a virtual machine (Windows 10 pro, version 1607, 14393.0).
The custom order is kept when navigating away from a folder. The issue is a Windows 10 Creator's update one. It is not a Windows 10 feature.
Can it be reported to the Microsoft Windows Shell group, please?
Best regards,
Eric Soulard
-
I've made a test installing a pre Creator's Update of Windows 10 on a virtual machine (Windows 10 pro, version 1607, 14393.0).
The custom order is kept when navigating away from a folder. The issue is a Windows 10 Creator's update one. It is not a Windows 10 feature.
Can it be reported to the Microsoft Windows Shell group, please?
Best regards,
Eric Soulard