Click here to Skip to main content
15,914,905 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Catching clicking Pin
yndfcd28-Oct-03 13:35
yndfcd28-Oct-03 13:35 
GeneralRe: Catching clicking Pin
Peter Molnar29-Oct-03 14:27
Peter Molnar29-Oct-03 14:27 
Generalusing Indic scripts in MFC in Win2K Pin
sagmam28-Oct-03 5:00
sagmam28-Oct-03 5:00 
QuestionHow to open a file in a different directory Pin
Deepak Samuel28-Oct-03 4:37
Deepak Samuel28-Oct-03 4:37 
AnswerRe: How to open a file in a different directory Pin
sagmam28-Oct-03 5:02
sagmam28-Oct-03 5:02 
AnswerRe: How to open a file in a different directory Pin
valikac28-Oct-03 5:47
valikac28-Oct-03 5:47 
GeneralResolution Problems Pin
Bernhard28-Oct-03 3:32
Bernhard28-Oct-03 3:32 
GeneralFile open dialog misery Pin
Rick Dangerous28-Oct-03 3:28
Rick Dangerous28-Oct-03 3:28 
Hi,

I have created an Explorer extension to provide a custom column.
This column is quite happy being turned on and off on a per folder basis in Explorer - I can tell any particular folder whether to display the column.

Now, in my application, I want to do a file open dialog (CFileDialog, GetOpenFilename() etc).
This is all ok and after no small effort I have managed to get this dialog to use the 'Report' view by default for the ListView control.

The problem is that the dialog only shows the default columns (Name, Size, Type etc...) and pays no attention to the individual folder settings - thus my column is not displayed even if the particular folder is supposed to be showing it.
I can select the column to be displayed in a folder but then if I browse to another and return the column settings have disappeared.

If I tell every folder to display the column (Tools-Folder Options-View-Like Curent Folder) then the column wil be displayed in my file open dialog. However, I don't want this column to be displayed for every single folder in Explorer (I intend adding quite a few more columns which show information inappropriate to most folders).

I know about the SHELLDEF_View and SysListView32 classes that implement the ListView control and can get to the interfaces below:

IID_IShellFolder2
IID_IShellIcon
IID_IPersistFolder3
IID_IShellIconOverlay

None of these interfaces appear to have methods that allow me to manipulate the columns shown. I know I can manually add columns with ListView.InsertColumn() but then there is no way of populating the control properly (or is there?) and it seems to blow up if I try and change views.

Does anyone know of a way of telling the control which columns to show, and to get it to remember which columns are to be shown. I know it can be done (Visual Studio.net has a dialog such as I need but it's quite possible that that uses it's own which just happens to be very similar to the standard dialog) but how?

I really cannot believe that one of the most used dialog boxes in the known universe is such a pain in the ar** to use (well obviously I can but even so...).

Do I have to implement my own IShellView + place it over the top of the standard one? This would be annoying due to having to implemnent the sorting, right click etc.

Thanks for any help on this particularly matter because it's driving me up the wall : )

Rick Dangerous
GeneralCRichEditCtrl a WYSIWYG Control -- Don't Think So! Pin
Larry J. Siddens28-Oct-03 3:24
Larry J. Siddens28-Oct-03 3:24 
Generalunicode macro Pin
Anonymous28-Oct-03 3:16
Anonymous28-Oct-03 3:16 
GeneralRe: unicode macro Pin
Graham Bradshaw28-Oct-03 4:30
Graham Bradshaw28-Oct-03 4:30 
GeneralRe: unicode macro Pin
sagmam28-Oct-03 5:07
sagmam28-Oct-03 5:07 
QuestionHow to abort reading operation on blocking socket? Pin
kotbegemot28-Oct-03 2:56
kotbegemot28-Oct-03 2:56 
AnswerRe: How to abort reading operation on blocking socket? Pin
valikac28-Oct-03 5:48
valikac28-Oct-03 5:48 
GeneralRe: How to abort reading operation on blocking socket? Pin
SLiDeR28-Oct-03 6:46
SLiDeR28-Oct-03 6:46 
GeneralRe: How to abort reading operation on blocking socket? Pin
kotbegemot28-Oct-03 21:38
kotbegemot28-Oct-03 21:38 
GeneralRichEdit 4.1 Pin
sagmam28-Oct-03 2:26
sagmam28-Oct-03 2:26 
GeneralRe: RichEdit 4.1 Pin
David Crow28-Oct-03 8:45
David Crow28-Oct-03 8:45 
GeneralRe: RichEdit 4.1 Pin
sagmam28-Oct-03 21:46
sagmam28-Oct-03 21:46 
GeneralRe: RichEdit 4.1 Pin
David Crow29-Oct-03 2:21
David Crow29-Oct-03 2:21 
GeneralRe: RichEdit 4.1 Pin
sagmam29-Oct-03 2:27
sagmam29-Oct-03 2:27 
GeneralRe: RichEdit 4.1 Pin
David Crow29-Oct-03 2:40
David Crow29-Oct-03 2:40 
GeneralRe: RichEdit 4.1 Pin
sagmam29-Oct-03 2:56
sagmam29-Oct-03 2:56 
GeneralRe: RichEdit 4.1 Pin
David Crow29-Oct-03 3:14
David Crow29-Oct-03 3:14 
GeneralRe: RichEdit 4.1 Pin
sagmam29-Oct-03 3:32
sagmam29-Oct-03 3:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.