Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - 13.3.1 CXTBrowseDialog modality bug
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

13.3.1 CXTBrowseDialog modality bug

 Post Reply Post Reply
Author
Message
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Topic: 13.3.1 CXTBrowseDialog modality bug
    Posted: 07 March 2010 at 10:59am
XTP 13.3.1, Windows 7 64-bit, VS 2008 SP1 with Windows 7 SDK.
 
CXTBrowseDialog browseDlg(this);
browseDlg.DoModal();
 
After showing dialog the focus is not restored to this. I tried the same code with any other dialog, and the focus is indeed set to the parent window after displaying the dialog! Also, it doesn't matter if you provide a parent or not - the focus is restored correctly no matter what.
PokerMemento - http://www.pokermemento.com/
Back to Top
kelvincannon View Drop Down
Groupie
Groupie
Avatar

Joined: 12 November 2003
Location: United Kingdom
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote kelvincannon Quote  Post ReplyReply Direct Link To This Post Posted: 10 March 2010 at 3:01pm
Is there any chance of a quick fix for this bug? I have an application going out for beta shortly and this bug locks up my application.

Back to Top
cpede View Drop Down
Senior Member
Senior Member


Joined: 13 August 2004
Location: Denmark
Status: Offline
Points: 647
Post Options Post Options   Thanks (0) Thanks(0)   Quote cpede Quote  Post ReplyReply Direct Link To This Post Posted: 14 March 2010 at 2:13pm
In Vista and 7 you should use CLSID_FileOpenDialog with the FOS_PICKFOLDERS flag instead of the
"old" browse dialog.
-cpede
Product: Xtreme ToolkitPro (22.1.0)
Platform: Windows 10 (x64)
Language: Visual Studio 2017 (C++)
Back to Top
Algae View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 January 2007
Location: United States
Status: Offline
Points: 217
Post Options Post Options   Thanks (0) Thanks(0)   Quote Algae Quote  Post ReplyReply Direct Link To This Post Posted: 19 March 2010 at 3:00pm
Yes, it's a bad bug. Problem is in the cut and paste material from MFC "DoModal" code. The framework should be handling all that. I'm not sure why it was added to otherwise functional code.

I reverted the XTBrowseDialog cpp/h to 13.2.1 with no ill-effects.
Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Posted: 13 April 2010 at 7:41am
http://www.codejock.com/products/releasenotes/release_notes.asp
 
13.3.0:
Fixing source: XTBrowseDialog was modeless
 
 
I believe that's where the new code was added. I wonder what they wanted to fix...
PokerMemento - http://www.pokermemento.com/
Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post Posted: 12 May 2010 at 9:56am
I believe this will be fixed in the next release.  You can write to support and I'll attache the updated file.
Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Posted: 30 August 2010 at 6:28am
Could this have something to do with this?
PokerMemento - http://www.pokermemento.com/
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 30 August 2010 at 11:58am
Hi,

Yes, it was reverted already.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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.141 seconds.