Using Common File Dialogs as Modeless Views
Environment: VC6 SP3, NT4 SP5, Windows 98, MSIE 5.0
This application was implemented for exercise purposes only. However I hope that ideas enclosed in it can be useful since it is sometimes required to get a Common Dialog modeless. Each Common File Dialog window has its style changed during creation and then lives in its own thread (CThreadRunningDlg class). The class for starting threads and wrapping of these dialog windows in the creation thread is CChildView. CdlgFileBrowse class is a descendant of standard MFC CFileDialog class running in its own thread. It implements actual initialization of parent Common File Dialog window. Common File Dialog window is sub-classed to maintain file list size fit under NT (CWndFileBrowse class). Of partial interest are also: splitter which allows maximally two panes opened and toggles windows tiling between horizontal and vertical (CTwixSplitter class) and edit bar derived from CControlBar class (CEditBar class).
Downloads
Download demo project - 9 KbDownload source - 24 Kb

Comments
Venture News : chanel Thought as Absolutely Essential On the market now
Posted by incockDak on 03/29/2013 08:03amgucci-hottie has tested out the most up-to-date method - - how you can make a lot of money from nothing [url=http://growth-management.alachua.fl.us/comprehensive_planning/gucci.html]ã°ãã 財å¸[/url] Interesting questions on gucci have been answered and the reasons you would need to check out every statement on this story. [url=http://growth-management.alachua.fl.us/comprehensive_planning/saclongchamp.php]Sac longchamps[/url] EllZitLixXmb [url=http://running-nike0.seesaa.net/]ãã¤ãã©ã³ãã³ã°[/url]QkeDkwDtlHss [[url=http://free-nike-nikeo.seesaa.net/]nike free[/url]TdgCqdXdfUqk [url=http://xn--nike-ul4c5c5fyqb.seesaa.net/]ã¹ãã¼ã«ã¼ãã¤ã[/url]IkmMqdGxaPch [url=http://nikejapan0.seesaa.net/]ãã¤ãã¹ãã¼ã«ã¼[/url]KvsCndVrvEux [url=http://nikesneakersjp.seesaa.net/]nike ã¹ãã¼ã«ã¼[/url]ArkCiyLheKde [url=http://nikegolf00.seesaa.net/]ãã¤ã[/url]VcnQgaRywTsd [url=http://nikeshoes00.seesaa.net/]nike ã·ã¥ã¼ãº[/url]EbsAruRajCdd [url=http://sneaker-adidas-jp.seesaa.net/]ã¹ãã¼ã«ã¼ ã¢ãã£ãã¹[/url]VrtMmePtoVvm
ReplyJust stop Protesting And Initiate a personal adidas shoes Distribution campaign Instead
Posted by expopmerm on 03/18/2013 01:54amConcise statement reveal the unquestionable information about nike shoes and precisely how it can certainly threaten you.|Quick guideline teaches you some of the inner workings of the nike shoes in addition to those things that you must do immediately.}[url=http://www.nikejapan.asia/]ã·ã¥ã¼ãºãã¤ã[/url] The Secret For nike shoes [url=http://www.adidasjapan.biz/]ã¢ãã£ãã¹ ã·ã¥ã¼ãº[/url] The thing you do not fully understand about adidas shoes could be costing much more than you might think. Update-- gucci bags Will certainly Have A Vital role In Virtually Any Management [url=http://www.guccijp.asia/]gucci ããã°[/url] Advanced chloe bags Ebook Clearly shows The Simplest Way To Rule The chloe World [url=http://www.chloejp.biz/]è²¡å¸ chloe[/url] The ways to discover all the details there is to know about chanel in eight quick steps. [url=http://www.chaneljp.biz/]chanel ããã°[/url] The best ways to comprehend all the details there is to find out relating to chanel in seven easy ways.A Fella who just ended up selling his nike shoes report for a few million dollars [url=http://www.adidasjapan.asia/]ã¢ãã£ãã¹ ã¹ãã¼ã«ã¼[/url] A significant double sprain on nike shoes [url=http://www.nikejp.biz/]nike ã©ã³ãã³ã°[/url] nike shoes Reproductions : A Perfect adidas shoes 'cheat' Which experts state Fools 98% of the customers
ReplyAdded fix for improved draw performance
Posted by Legacy on 10/24/2003 12:00amOriginally posted by: Gareth
What a great article! I have a small fix though...
BOOL CDlgFileBrowse::OnInitDialog()
{
CWnd* pParent = GetParent();
VERIFY(::SetWindowLong(*pParent, GWL_STYLE, WS_CHILD | WS_CLIPCHILDREN));
...I've added the WS_CLIPCHILDREN. You'll notice this will fix any werid painting problems when passing other windows over the file dialog. Great article though...
g :�)
ReplyNice. But is it possible to do it in a CPropertyPage instead?
Posted by Legacy on 07/17/2003 12:00amOriginally posted by: Tomas Rasmussen
Very nice application. But I would like it to appear in a CPropertyPage instead. Anyone able to solve that one???
Best regards
Tomas Rasmussen
ReplyTwo panes
Posted by Legacy on 05/12/2003 12:00amOriginally posted by: Dragan M
Select more than 15 files. Press Enter. File Open dlg is gone.
ReplyVery cool--anyone know how to do this in .Net (C#)?
Posted by Legacy on 07/09/2002 12:00amOriginally posted by: Scott
Very good job on this...do you know how to do the same thing in C#? I want to put a file open dialog on a tab page. Any ideas?
ReplyThanks for the great work!
Not Bad
Posted by Legacy on 06/14/2001 12:00amOriginally posted by: Jim.Rong
Not Bad!
ReplyNeat, but could be better commented
Posted by Legacy on 06/11/2001 12:00amOriginally posted by: JohnE
First impressions.... Nice little app with some useful concepts. Does what it says on the tin, but (and it's only a minor but)... would it have hurt to sprinkle a few more comments here & there?
Reply