CXTBrowseEdit hangs when Browsing for Directory |
Post Reply |
Author | |
grudy
Groupie Joined: 02 November 2004 Location: United States Status: Offline Points: 19 |
Post Options
Thanks(0)
Posted: 10 November 2010 at 8:32am |
If you use a CXTBrowseEdit with BES_XT_CHOOSEDIR set to choose a directory in the pane of a Customize dialog, and then you press the browse button, when you choose the directory and press OK, the application hangs. This is easily demonstrated by the CommandBars Customize Dialog sample (on the Tools pane of the Customize dialog). It worked fine in 13.2.1, but hangs in 13.3.1. Any ideas how to fix this?
|
|
grudy
Groupie Joined: 02 November 2004 Location: United States Status: Offline Points: 19 |
Post Options
Thanks(0)
|
I just found the thread on CXTBrowseDialog hanging in v13.3.1 that seems to answer this problem by reverting XTBrowseDialog.cpp and .h back to v13.2.1. I just tried doing that an it also seems to work for me. Haven't yet confirmed that there are no other side effects of this change.
|
|
Michl
Senior Member Joined: 14 September 2007 Status: Offline Points: 138 |
Post Options
Thanks(0)
|
http://msdn.microsoft.com/en-us/library/bb762115%28VS.85%29.aspx
Note If COM is initialized using CoInitializeEx with the COINIT_MULTITHREADED flag, SHBrowseForFolder fails if the calling application uses the BIF_USENEWUI or BIF_NEWDIALOGSTYLE flag in the BROWSEINFO structure. Codejock set BIF_NEWDIALOGSTYLE as default. Delete flag in your code if you need COINIT_MULTITHREADED. |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |