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

C / C++ / MFC

 
AnswerRe: streaming wav on the web through activeX control? Pin
Ravi Bhavnani10-Oct-04 7:13
professionalRavi Bhavnani10-Oct-04 7:13 
Generalnew Items in my Toolbox Pin
Serhiy10-Oct-04 4:55
Serhiy10-Oct-04 4:55 
GeneralRe: new Items in my Toolbox Pin
Aamir Butt11-Oct-04 0:15
Aamir Butt11-Oct-04 0:15 
GeneralRe: new Items in my Toolbox Pin
Serhiy11-Oct-04 0:49
Serhiy11-Oct-04 0:49 
Questionhow to set list height of the listctrl? Pin
Lido Paul10-Oct-04 4:46
Lido Paul10-Oct-04 4:46 
AnswerRe: how to set list height of the listctrl? Pin
Ravi Bhavnani10-Oct-04 7:16
professionalRavi Bhavnani10-Oct-04 7:16 
GeneralFile Properties in Windows XP Pin
dessa9910-Oct-04 2:29
dessa9910-Oct-04 2:29 
GeneralRe: File Properties in Windows XP Pin
Antti Keskinen10-Oct-04 10:12
Antti Keskinen10-Oct-04 10:12 
I believe that you're looking for the information on how to view the 'Summary' of a file, as displayed by Windows Explorer.

First, to achieve this, you need to know COM programming. I will describe the method in a short-handed manner. If you do not know shell programming, then this list of information will not be very helpful.

1. Get the desktop folder item
2. Navigate into the folder where the file is (IShellFolder::BindToObject)
3. Get a pointer to the file's IShellFolder interface, and query it for IShellFolder2 interface
4. Call IShellFolder2::GetDetailsOf, passing NULL in the first parameter, and an increasing column index as the second. The third parameter will return the title of the indexed column or E_FAIL if the index doesn't exist.

The MSDN says the same in a more verbose manner:

"The available information fields and their column numbers vary depending on the particular folder. To enumerate the available fields call IShellDetails::GetDetailsOf with pidl set to NULL for increasing values of iColumn. This approach provides you with the title associated with each column index. When iColumn exceeds the number of columns supported by the folder, IShellDetails::GetDetailsOf will return E_FAIL. Bear in mind that these titles are localizable, and may not be the same for all locales."

After you have the titles, and can identify the index of the title you're interested in, then you need to get the PIDL (Pointer to item identifier list) of the file. To get this, use the IShellFolder pointer you had, call IShellFolder::GetDisplayNameOf and use the display name with SHParseDisplayName to get the PIDL. Then call IShellFolder2::GetDetailsOf again with the PIDL and column index. You'll be presented with the information you were looking for.

If none of this makes sense, you should begin your journey in MSDN by searching for 'Shell Basics' and learn the concepts required to program the Shell. It's a difficult and quite a complex thing to learn, but once you master at least a part of it, your skills and options in using Windows OS is much more varied.

Hope this helps.

-Antti Keskinen

----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
GeneralDisabled menu item Pin
Kamis10-Oct-04 2:24
Kamis10-Oct-04 2:24 
GeneralRe: Disabled menu item Pin
Antony M Kancidrowski10-Oct-04 3:03
Antony M Kancidrowski10-Oct-04 3:03 
GeneralRe: Disabled menu item Pin
Kamis10-Oct-04 3:43
Kamis10-Oct-04 3:43 
GeneralEdit control, SDI Pin
uqtur10-Oct-04 0:58
uqtur10-Oct-04 0:58 
GeneralVirtual CD Pin
X20409-Oct-04 23:55
X20409-Oct-04 23:55 
QuestionHow to register? Pin
momer9-Oct-04 23:06
momer9-Oct-04 23:06 
QuestionHow to store the greatest number value? Pin
sacoskun9-Oct-04 22:38
sacoskun9-Oct-04 22:38 
AnswerRe: How to store the greatest number value? Pin
Antony M Kancidrowski10-Oct-04 3:01
Antony M Kancidrowski10-Oct-04 3:01 
GeneralRe: How to store the greatest number value? Pin
sacoskun10-Oct-04 8:15
sacoskun10-Oct-04 8:15 
GeneralRe: How to store the greatest number value? Pin
Antony M Kancidrowski10-Oct-04 9:00
Antony M Kancidrowski10-Oct-04 9:00 
AnswerRe: How to store the greatest number value? Pin
toxcct10-Oct-04 21:21
toxcct10-Oct-04 21:21 
Questionwhy did it thow CFileException::diskFull? Pin
twing9-Oct-04 22:30
twing9-Oct-04 22:30 
Questionbeginner: initializing objects in constructor? Pin
7stud9-Oct-04 17:29
7stud9-Oct-04 17:29 
AnswerRe: beginner: initializing objects in constructor? Pin
Antony M Kancidrowski10-Oct-04 2:57
Antony M Kancidrowski10-Oct-04 2:57 
GeneralRe: beginner: initializing objects in constructor? Pin
7stud10-Oct-04 17:49
7stud10-Oct-04 17:49 
GeneralRe: beginner: initializing objects in constructor? Pin
Antony M Kancidrowski11-Oct-04 5:09
Antony M Kancidrowski11-Oct-04 5:09 
GeneralRe: beginner: initializing objects in constructor? Pin
7stud11-Oct-04 8:58
7stud11-Oct-04 8:58 

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.