It is currently Thu Mar 28, 2024 3:55 am

All times are UTC - 8 hours [ DST ]


Forum rules


Please, keep discussions on topic and in the right forum. The start menu topics go into the Classic Start Menu forum, etc. This makes it easier for people to locate topics they are looking for.
If you get a satisfactory response to your question, please mark the topic as "solved". Click the green √ button in the bottom-right of the post.



Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: common dialog!!
PostPosted: Mon Jan 07, 2013 9:54 pm 
Offline

Joined: Mon Jan 07, 2013 9:49 pm
Posts: 4
hi..i love classic shell so much..we have got the function to make address bar to combobox drop down like XP..
->how can we do .. with common dialog with the same function when open/save file...
thanks..


Top
 Profile  
Reply with quote  
 Post subject: Re: common dialog!!
PostPosted: Mon Jan 07, 2013 9:57 pm 
Offline
Site Admin
User avatar

Joined: Wed Jan 02, 2013 11:38 pm
Posts: 5333
Not possible, here's why: http://www.classicshell.net/faq/#explorer_saveas


Top
 Profile  
Reply with quote  
 Post subject: Re: common dialog!!
PostPosted: Wed Jan 09, 2013 8:13 am 
Offline
User avatar

Joined: Sun Jan 06, 2013 1:44 pm
Posts: 1996
ive been wondering about this (not the why as i read yours, but more of a how to get around without unleashing all hell)
i know you cant add it to the save dialogs because they could be modified, but is there a way to check if they are modified and if not add it (since 90% of them arnt modified as far as i can tell), and i asume code injection is a bad idea? :P


Top
 Profile  
Reply with quote  
 Post subject: Re: common dialog!!
PostPosted: Thu Jan 10, 2013 12:00 am 
Offline

Joined: Mon Jan 07, 2013 9:49 pm
Posts: 4
Ivo wrote:


hix..that's a pity!! but..any way.. i love classic shell


Top
 Profile  
Reply with quote  
 Post subject: Re: common dialog!!
PostPosted: Tue Oct 15, 2013 11:55 am 
Offline

Joined: Tue Oct 15, 2013 7:49 am
Posts: 4
I'd like to re-open this conversation with a modified version of this request -- I've been fighting the common dialog battle for a while. It is possible to subclass the common dialog box at the time that it's created, and then intercept select components of the dialog box and make them invisible, or change their class to a read-only style. For example, the standard 2008/2012 common dialog box allows you to type any old thing you want in the top section, like 'cmd.exe'. And, if you aren't using AppLocker to restrict cmd.exe from running, your user's can quickly and easily get to a command prompt. This of course opens up a whole can of worms because windows runs your login script with cmd.exe so that gets blocked as well. In a terminal server environment this becomes a big problem.

I've heard of enterprise-level solutions to "locking down" the common dialog box, but they also come with enterprise-level pricing which is impossible for a small company like ours to justify. For our in-house applications, the only solution I had was to subclass the common dialog box each and every time I used it in code, which is a management nightmare. But, it works.

Here's a 'standard' common dialog box raised by the application without subclassing --



Here is the same dialog after my code intercepts the call to the common dialog, subclasses the form, and then "hides" some of the naughty features --





This is an extremely low tech solution to the problem. However, there is no solution for other applications whose source code I don't have (like 'notepad.exe').

Some options that I think could be implemented by some program that already has the ability to hook into shell level actions (*cough* classicshell *cough*) would be --

  • Hide Common Dialog Nav Box
  • Hide Common Dialog Tool Bar
  • Hide Common Dialog Network Places Frame (OFN_EX_NOPLACESBAR)
  • Force downgrade to XP-Style dialog box (OFN_EXPLORER, OFN_NONETWORKBUTTON)
Print dialog also has issues that can be intercepted with a subclass

  • PD_NONETWORKBUTTON
  • PD_DISABLEPRINTTOFILE
  • PD_HIDEPRINTTOFILE

Note that OS versions prior to 2008 also had the following commondialog options which are no longer respected by Microsoft
  • Software\Microsoft\Windows\CurrentVersion\Policies\Comdlg32\NoComputersNearMe
  • Software\Microsoft\Windows\CurrentVersion\Policies\Comdlg32\NoEntireNetwork
  • Software\Microsoft\Windows\CurrentVersion\Policies\Comdlg32\NoNetHood
  • Software\Microsoft\Windows\CurrentVersion\Policies\Comdlg32\NoRecentDocsNetHood
  • Software\Microsoft\Windows\CurrentVersion\Policies\Comdlg32\NoStartMenuNetworkPlaces

I don't think a system wide "replacement" of the common dialog box is feasible for all the reasons mentioned in the FAQ. There are just too many combinations, and the common dialog api exposes different functionality based on the "size" the structure passed to it, for backwards compatibility. The combinations are endless. But within a narrow set of parameters I think its possible to target specific graphical elements on the form at the time the dialog is created, and then use some windows messaging to hide them. I personally don't have the platform or the means to try and build my own system wide solution to the problem but I'd gladly work with anyone who wanted to try and tackle this at the system wide level.

Thanks for listening!

Ron


Top
 Profile  
Reply with quote  
 Post subject: Re: common dialog!!
PostPosted: Wed Oct 16, 2013 6:41 am 
Offline
User avatar

Joined: Sun Jan 06, 2013 1:44 pm
Posts: 1996
Ha I used to do that all the time with the Kiosk at my school, so I could do more than just the 5 locations it would otherwise let you visit :P


Top
 Profile  
Reply with quote  
 Post subject: Re: common dialog!!
PostPosted: Wed Mar 26, 2014 11:41 pm 
Offline

Joined: Mon Jan 07, 2013 9:49 pm
Posts: 4
have got another idea...i think that, can you modify this common dialog only for MS office, because it's usually to use..like the way you did with IE option..hope that have more one tab for MS Office with classic common dialog..Many thanks...


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 20 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group, Almsamim WYSIWYG Classic Shell © 2010-2016, Ivo Beltchev.
All right reserved.