Click here to Skip to main content
15,920,596 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Create Multiple Windows Pin
Rage14-Apr-03 6:22
professionalRage14-Apr-03 6:22 
GeneralRe: Create Multiple Windows Pin
Paul Farry14-Apr-03 11:30
professionalPaul Farry14-Apr-03 11:30 
GeneralLoadIcon question Pin
Jump_Around14-Apr-03 1:24
Jump_Around14-Apr-03 1:24 
GeneralRe: LoadIcon question Pin
Martyn Pearson14-Apr-03 5:33
Martyn Pearson14-Apr-03 5:33 
GeneralRe: LoadIcon question Pin
Rage14-Apr-03 6:36
professionalRage14-Apr-03 6:36 
GeneralRe: For Rage Pin
Toni7814-Apr-03 9:53
Toni7814-Apr-03 9:53 
GeneralRe: For Rage Pin
Jump_Around14-Apr-03 11:14
Jump_Around14-Apr-03 11:14 
GeneralRe: For Rage Pin
Martyn Pearson14-Apr-03 23:51
Martyn Pearson14-Apr-03 23:51 
There could be a function that does this for you - have a browse through the shell functions and interfaces to see if anything pops out. However, you could use this method....

Say for example, you are representing an MS Word document, myfile.doc

If you look up ".doc" in the registry under HKEY_CLASSES_ROOT, you will find the default value is something like "Word.Document.8" - it is on my machine, this may well vary depending on the version of MS Word you have installed.

If you then find "Word.Document.8" under HKEY_CLASSES_ROOT, you will find it has a number of subkeys. Navigate through these subkeys to find the default value for the entry shell/Open/command. (in this case, the full registry path is HKEY_CLASSES_ROOT/Word.Document.8/shell/Open/command)

This contains the name of the executable, which you can then interrogate for the icon!

Hope this helps!
GeneralRe: For Rage Pin
Jump_Around15-Apr-03 1:06
Jump_Around15-Apr-03 1:06 
GeneralGDI+ Pin
Emiliano14-Apr-03 1:18
Emiliano14-Apr-03 1:18 
GeneralRe: GDI+ Pin
Zdeslav Vojkovic14-Apr-03 1:54
Zdeslav Vojkovic14-Apr-03 1:54 
GeneralRe: GDI+ Pin
Anonymous14-Apr-03 3:37
Anonymous14-Apr-03 3:37 
GeneralImport data file as a Matrix Pin
calgonit14-Apr-03 1:06
calgonit14-Apr-03 1:06 
GeneralRe: Import data file as a Matrix Pin
Rage14-Apr-03 2:56
professionalRage14-Apr-03 2:56 
GeneralConverting an icon into a bitmap Pin
Nicolas Bonamy14-Apr-03 0:18
Nicolas Bonamy14-Apr-03 0:18 
GeneralRe: Converting an icon into a bitmap Pin
Liorsh14-Apr-03 0:44
Liorsh14-Apr-03 0:44 
GeneralRe: Converting an icon into a bitmap Pin
Nicolas Bonamy14-Apr-03 1:30
Nicolas Bonamy14-Apr-03 1:30 
GeneralRe: Converting an icon into a bitmap Pin
Iain Clarke, Warrior Programmer14-Apr-03 0:49
Iain Clarke, Warrior Programmer14-Apr-03 0:49 
GeneralRe: Converting an icon into a bitmap Pin
Nicolas Bonamy14-Apr-03 1:28
Nicolas Bonamy14-Apr-03 1:28 
GeneralRe: Converting an icon into a bitmap Pin
Nicolas Bonamy14-Apr-03 9:01
Nicolas Bonamy14-Apr-03 9:01 
GeneralSending text as popup message Pin
Mr Bose Dayala14-Apr-03 0:17
Mr Bose Dayala14-Apr-03 0:17 
GeneralRe: Sending text as popup message Pin
cr9714-Apr-03 4:07
cr9714-Apr-03 4:07 
GeneralRe: Sending text as popup message Pin
Mr Bose Dayala14-Apr-03 18:01
Mr Bose Dayala14-Apr-03 18:01 
GeneralRe: Sending text as popup message Pin
cr9714-Apr-03 22:24
cr9714-Apr-03 22:24 
GeneralRe: Sending text as popup message Pin
Mr Bose Dayala14-Apr-03 22:39
Mr Bose Dayala14-Apr-03 22:39 

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.