Results 1 to 2 of 2

Thread: Extract icon from my app

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 1999
    Location
    Prague, Czech Republic
    Posts
    350
    I would like to display an icon of my app (in about box) and I am saving each byte I can. So I decided to extract this icon, but I don't know if it is better to take it from the app window (using SendMsg WM_ICON) or to extract it from the EXE file..

    Can somebody tell me the dis/advantages of both methods. Or is other? Or it will be more economic to add a icon to the image component instead of writing code?

  2. #2
    Fanatic Member
    Join Date
    Apr 2000
    Location
    Whats a location?
    Posts
    516
    It would be economic to do it through code, I think, and if you are so desperately saving every byte I would use ExtractIcon (to save you that valuable couple of bytes consumed by the WM_ICON constant) but if you already have SendMessage declared, I think it would be more costly to declare ExtactIcon as well.
    Courgettes.

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