Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - CXTBrowseEdit hangs when Browsing for Directory
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTBrowseEdit hangs when Browsing for Directory

 Post Reply Post Reply
Author
Message
grudy View Drop Down
Groupie
Groupie


Joined: 02 November 2004
Location: United States
Status: Offline
Points: 19
Post Options Post Options   Thanks (0) Thanks(0)   Quote grudy Quote  Post ReplyReply Direct Link To This Post Topic: CXTBrowseEdit hangs when Browsing for Directory
    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?
Back to Top
grudy View Drop Down
Groupie
Groupie


Joined: 02 November 2004
Location: United States
Status: Offline
Points: 19
Post Options Post Options   Thanks (0) Thanks(0)   Quote grudy Quote  Post ReplyReply Direct Link To This Post Posted: 10 November 2010 at 9:27am
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.
Back to Top
Michl View Drop Down
Senior Member
Senior Member


Joined: 14 September 2007
Status: Offline
Points: 138
Post Options Post Options   Thanks (0) Thanks(0)   Quote Michl Quote  Post ReplyReply Direct Link To This Post Posted: 13 January 2011 at 7:46am
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.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.156 seconds.