Displaying an icon on my button exactly as it displays in Window Shell

This is a discussion on Displaying an icon on my button exactly as it displays in Window Shell within the C++ Programming forums, part of the General Programming Boards category; As the topic how do i Display an icon on my button exactly as it displays in Window Shell. ( ...

  1. #1
    Registered User
    Join Date
    Mar 2004
    Posts
    114

    Smile Displaying an icon on my button exactly as it displays in Window Shell

    As the topic
    how do i Display an icon on my button exactly as it displays in Window Shell. ( without using picture editor to screenshot and load that resource into the program )
    example :

    - An exec file with an apple would show the same apple on the button.

    - A text file would show a wordpad icon

    - a shortcut would show which ever icon it shows as in window shell ( how do i point to shortcuts by the way?)

    using

    win98
    VC++6.0
    API style


  2. #2
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,630
    You use SHGetFileInfo().

    gg

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Button Displaying Image
    By mrafcho001 in forum Windows Programming
    Replies: 4
    Last Post: 12-03-2005, 01:14 PM
  2. Tab Controls - API
    By -KEN- in forum Windows Programming
    Replies: 7
    Last Post: 06-02-2002, 09:44 AM
  3. opengl code not working
    By Unregistered in forum Windows Programming
    Replies: 4
    Last Post: 02-14-2002, 09:01 PM
  4. Winamp Vis if anyone can help
    By Unregistered in forum Windows Programming
    Replies: 6
    Last Post: 01-26-2002, 11:43 PM
  5. Outputting String arrays in windows
    By Xterria in forum Game Programming
    Replies: 11
    Last Post: 11-13-2001, 06:35 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21