I have the following problem to solve:
I am working currently on an access client which also shows pictures. Assinging the pictures work through the standard MS CommonDialog 6.0.
It works fine so far, but there is one thing which would make the application "nearly" perfect.
I want to see the small pictures when I open the Dialog, normally you can change this in the upper right of the box, but since you use this menu very often it seems to be very annoying to do it every time.
So the question is: is there a way to make preset the folder settings of the CommonDialog? He doesnt seem to recognize the folder settings of windows- so I have to set it somehow myself... but how?
Any Ideas?
Bobo the Thief
07-18-2003, 03:32 PM
You mean the folder Views (details/list...)? If there's a way to this, there must be a flag that makes the setting. I haven't found one yet.
Also you mentioned "presetting the folder" - if that means setting the initial path, use InitDir property.
There is one flag that might make it more convenient for you - see "cdlOFNExplorer".
VBJoe
07-18-2003, 03:36 PM
cdlOFNExplorer is for Win98 and WinNT only. MSDN:
The cdlOFNExplorer and cdlOFNNoDereferenceLinks flags work only under Windows 95 and Windows NT 4.0. Multiselect common dialogs under Windows 95 using cdlOFNExplorer use null characters for delimiters, but under previous versions of Windows NT without the Windows 95 shell, the multiselect uses spaces for delimiters (thus no support for long filenames).
Under both Windows NT 4.0 and Windows 95 if you do not choose the cdlOFNAllowMultiselect flag, then both the cdlOFNExplorer and cdlOFNLongNames flags have no effect and are essentially the default.
If you use the cdlOFNAllowMultiselect flag by itself under both Windows NT 4.0 and Windows 95, you will not have support for long filenames. This is because the multiple filenames come back space delimited and long filenames could include spaces. You cannot avoid this behavior if you have Windows NT 3.5. If you use cdlOFNAllowMultiselect, you cannot see long filenames. If you add the cdlOFNExplorer flag under Windows 95, you will be able to both multiselect and see long filenames. But the filenames come back null character delimited and not space delimited. Thus, using cdlOFNAllowMultiselect with cdlOFNExplorer will require different parsing of the filename result under Windows 95 and Windows NT 4.0.
As to the original question: are you using Windows XP? I'm confused as to what you mean by "small pictures." Perhaps you could elaborate... :confused:
cdlOFNExplorer is for Win98 and WinNT only. MSDN:
As to the original question: are you using Windows XP? I'm confused as to what you mean by "small pictures." Perhaps you could elaborate... :confused:
Hi,
sorry for the misunderstanding- with preset I meant the view of the folder, not the path.
Here is what the dialog should show when I open it:
http://www.dreikantschnurzeln.de/Folder.jpg
And I am using XP as a developing computer, but the final tool will run under Win2000
No ideas? Anyone?
Somehow it must be possible to modify this CommonDialog? No?
Thinker
07-20-2003, 11:02 AM
I don't think you will be doing this with VB and the common dialog control.
I believe it requires using a combination of C++, the common dialog APIs and a COM object supporting the IShellView interface.
HiTmAN
07-20-2003, 11:48 AM
This page (http://www.elitevb.com/content/01,0084,01/) could be useful. Not exactly what you are looking for, but along the right lines.