Print Page | Close Window

13.3.1 CXTBrowseDialog modality bug

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=16383
Printed Date: 20 June 2025 at 9:43am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: 13.3.1 CXTBrowseDialog modality bug
Posted By: znakeeye
Subject: 13.3.1 CXTBrowseDialog modality bug
Date 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/



Replies:
Posted By: kelvincannon
Date 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.



Posted By: cpede
Date 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 (24.0.0)
Platform: Windows 10 (x64)
Language: Visual Studio 2017 (C++)


Posted By: Algae
Date 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.


Posted By: znakeeye
Date Posted: 13 April 2010 at 7:41am
http://www.codejock.com/products/releasenotes/release_notes.asp - 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/


Posted By: SuperMario
Date 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.


Posted By: znakeeye
Date Posted: 30 August 2010 at 6:28am
Could this have something to do with this?
http://blogs.msdn.com/b/oldnewthing/archive/2004/02/27/81155.aspx - http://blogs.msdn.com/b/oldnewthing/archive/2004/02/27/81155.aspx


-------------
PokerMemento - http://www.pokermemento.com/


Posted By: Oleg
Date Posted: 30 August 2010 at 11:58am
Hi,

Yes, it was reverted already.

-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net