Click here to Skip to main content
15,912,329 members
Home / Discussions / Article Writing
   

Article Writing

 
QuestionHow to set thumbnail image to a file icon of Explorer Pin
Masahiro Kurosawa27-Mar-01 20:29
Masahiro Kurosawa27-Mar-01 20:29 
AnswerRe: How to set thumbnail image to a file icon of Explorer Pin
PJ Arends28-Mar-01 6:23
professionalPJ Arends28-Mar-01 6:23 
AnswerRe: How to set thumbnail image to a file icon of Explorer Pin
Michael Dunn28-Mar-01 16:57
sitebuilderMichael Dunn28-Mar-01 16:57 
GeneralRe: How to set thumbnail image to a file icon of Explorer Pin
Masahiro Kurosawa28-Mar-01 17:32
Masahiro Kurosawa28-Mar-01 17:32 
GeneralHow to extract icon from file? Pin
Masahiro Kurosawa29-Mar-01 1:17
Masahiro Kurosawa29-Mar-01 1:17 
GeneralRe: How to extract icon from file? Pin
Michael Dunn29-Mar-01 6:31
sitebuilderMichael Dunn29-Mar-01 6:31 
GeneralRe: How to extract icon from file? Pin
Masahiro Kurosawa29-Mar-01 14:25
Masahiro Kurosawa29-Mar-01 14:25 
GeneralRe: How to extract icon from file? Pin
Michael Dunn29-Mar-01 16:11
sitebuilderMichael Dunn29-Mar-01 16:11 
Ah ok, you want to get the icon that's used for TXT files, right? The way to do that is with SHGetFileInfo(), such as:
SHFILEINFO info;
 
  SHGetFileInfo ( _T("foo.txt"), FILE_ATTRIBUTE_NORMAL, &info, sizeof(SHFILEINFO),
                  SHGFI_ICON | SHGFI_USEFILEATTRIBUTES );

After that, info.hIcon is the icon. Add SHGFI_SMALLICON to the flags if you want the small (16x16) icon.

--Mike--
http://home.inreach.com/mdunn/
The preferred snack of 4 out of 5 Lounge readers.
GeneralRe: How to extract icon from file? Pin
Masahiro Kurosawa29-Mar-01 18:52
Masahiro Kurosawa29-Mar-01 18:52 
QuestionHow resize dialog bar when it is in docked mode ? Pin
25-Mar-01 21:13
suss25-Mar-01 21:13 
GeneralSome problem when hosting WebBrowser control in an application Pin
25-Mar-01 21:12
suss25-Mar-01 21:12 
GeneralBitmaps and Static Controls Pin
24-Mar-01 4:33
suss24-Mar-01 4:33 
GeneralRe: Bitmaps and Static Controls Pin
Christian Graus24-Mar-01 10:22
protectorChristian Graus24-Mar-01 10:22 
GeneralCRC-32 LIBRARY Pin
Marek Švantner23-Mar-01 7:55
Marek Švantner23-Mar-01 7:55 
GeneralRe: CRC-32 LIBRARY Pin
Rui Lopes23-Mar-01 8:24
Rui Lopes23-Mar-01 8:24 
GeneralRe: CRC-32 LIBRARY Pin
Leo Moll23-Mar-01 8:24
Leo Moll23-Mar-01 8:24 
GeneralReading the file which is given for printing Pin
22-Mar-01 0:24
suss22-Mar-01 0:24 
GeneralON_COMMAND_UI for Dialog Tutorial/Example Pin
Matt Philmon21-Mar-01 9:51
Matt Philmon21-Mar-01 9:51 
GeneralRe: ON_COMMAND_UI for Dialog Tutorial/Example Pin
Michael Dunn22-Mar-01 6:21
sitebuilderMichael Dunn22-Mar-01 6:21 
GeneralRe: ON_COMMAND_UI for Dialog Tutorial/Example Pin
Matt Philmon22-Mar-01 14:02
Matt Philmon22-Mar-01 14:02 
GeneralShared files info Pin
20-Mar-01 14:54
suss20-Mar-01 14:54 
QuestionDatasource - how to make? Pin
11-Mar-01 4:37
suss11-Mar-01 4:37 
AnswerRe: Datasource - how to make? Pin
Attila Hajdrik11-Mar-01 9:01
Attila Hajdrik11-Mar-01 9:01 
GeneralChanging windows hostname and updating DNS immediately. Pin
Paul Freebourne7-Mar-01 4:59
Paul Freebourne7-Mar-01 4:59 
GeneralIs there an alternative to CMC mail Pin
Steve Thresher6-Mar-01 4:45
Steve Thresher6-Mar-01 4:45 

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.