CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 1999
    Location
    Nottingham, UK
    Posts
    35

    How do you load a small icon from a resource file

    A LoadIconEx function does not exist, how the hell do you load a 16x16 icon from a resource file?


  2. #2
    Join Date
    May 1999
    Location
    Seattle, WA USA
    Posts
    423

    Re: How do you load a small icon from a resource file

    you do not load different icon sizes seperately, when you load an icon, you get the entire icon (all sizes). They are the same icon, same file. Then when you wish to display the icon, you decide which size you wish to display.

    --michael


  3. #3
    Join Date
    Apr 1999
    Location
    Nottingham, UK
    Posts
    35

    Re: How do you load a small icon from a resource file

    But I'm using CButton::SetIcon how do I specify different icons in the same HICON?


  4. #4
    Join Date
    May 1999
    Location
    Seattle, WA USA
    Posts
    423

    Re: How do you load a small icon from a resource file

    you can use LoadImage instead of LoadIcon. It lets you specify which size you want.

    --michael


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured