4 ms·
> Am I the only one scared that notepad on the latest Windows can still display a dialog box that comes straight from NT 3.1? As the article states the reason
by jussij 17y ago
> Am I the only one scared that notepad on the latest Windows can still display a dialog box that comes straight from NT 3.1?
As the article states the reason for this is:
Because Windows Explorer and many of the components of the Shell aren't included in a Server Core install, applications like Notepad' which would normally show an Open dialog box like this: (show the original File Open dialog)
> Why the hell does it still have that DLL built in?
To display the file open dialog in Windows all you do is call the GetOpenFileName Win32 function.
Back in the days of Windows 95 Microsoft got into the habit of changing the look of the File Open dialog for every new release of Windows and they stored these new dialogs in the common control dll.
So I suspect deep inside of Window itself there is pseudo code that works something like this:
GetOpenFileName()
if Common Control DLL installed
Call New Explorer GetOpenFileName dialog
else
Call the very first every GetOpenFileName dialog built into Windows itself
- rbanffy 17y agoWouldn't it be easier (and more elegant) to skip the built-in dialogs altogether and just ship it with a common controls dll that didn't use Windows Explorer elements? I am fine with Microsoft moving things around, but layer upon layer of obsolete functionality doesn't strike me as even professional. Hell... If one of my developers even attempted such a stunt we would have a long code review session discussing it.