Thread: Icon Help

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    VA National Guard The Brain's Avatar
    Join Date
    May 2004
    Location
    Manassas, VA USA
    Posts
    903

    Exclamation

    Thanks for your continued efforts on this somewhat frivilous task.. as you can see, I have a 32x32 16 color icon that for some mysterious reason will not show itself in me' program.

    I envision a day where code will work equally for everyone.
    • "Problem Solving C++, The Object of Programming" -Walter Savitch
    • "Data Structures and Other Objects using C++" -Walter Savitch
    • "Assembly Language for Intel-Based Computers" -Kip Irvine
    • "Programming Windows, 5th edition" -Charles Petzold
    • "Visual C++ MFC Programming by Example" -John E. Swanke
    • "Network Programming Windows" -Jones/Ohlund
    • "Sams Teach Yourself Game Programming in 24 Hours" -Michael Morrison
    • "Mathmatics for 3D Game Programming & Computer Graphics" -Eric Lengyel

  2. #2
    Registered User
    Join Date
    Dec 2006
    Location
    Scranton, Pa
    Posts
    252
    Code:
        wincl.hIcon = LoadIcon (NULL, IDI_APPLICATION);
        wincl.hIconSm = (HICON)LoadImage(GetModuleHandle(NULL),
        MAKEINTRESOURCE(IDI_SMLCON), IMAGE_ICON, 16, 16, 0);
    
    #define IDI_MYICON          010
    #define IDI_SMLCON          020
    
    IDI_SMLCON              ICON     DISCARDABLE     "Crazy.ICO"
    IDI_MYICON              ICON     DISCARDABLE     "Crazy.ICO"
    The above is all you need. If I stop on by tomorrow and you haven't gotten it, I'll pack up a small, working example.

  3. #3
    Registered User
    Join Date
    Dec 2006
    Location
    Scranton, Pa
    Posts
    252
    Here's the example code. This 'il change your titlebar icon and the running window (taskbar) icon.

    I'm assuming that this is what you're referring to -
    Last edited by Oldman47; 04-03-2009 at 09:47 PM.

  4. #4
    VA National Guard The Brain's Avatar
    Join Date
    May 2004
    Location
    Manassas, VA USA
    Posts
    903

    Thumbs up TY Oldman47

    it woiks..!! :^)
    Last edited by The Brain; 04-05-2009 at 04:24 PM.
    • "Problem Solving C++, The Object of Programming" -Walter Savitch
    • "Data Structures and Other Objects using C++" -Walter Savitch
    • "Assembly Language for Intel-Based Computers" -Kip Irvine
    • "Programming Windows, 5th edition" -Charles Petzold
    • "Visual C++ MFC Programming by Example" -John E. Swanke
    • "Network Programming Windows" -Jones/Ohlund
    • "Sams Teach Yourself Game Programming in 24 Hours" -Michael Morrison
    • "Mathmatics for 3D Game Programming & Computer Graphics" -Eric Lengyel

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Custom Icon for DLL
    By Delf in forum Windows Programming
    Replies: 5
    Last Post: 06-10-2005, 08:36 AM
  2. icon not showing
    By xlnk in forum Windows Programming
    Replies: 2
    Last Post: 02-27-2004, 06:36 PM
  3. Icon problem
    By mkyong in forum Windows Programming
    Replies: 0
    Last Post: 02-17-2003, 05:39 PM
  4. Icon? help!
    By Unregistered in forum C++ Programming
    Replies: 1
    Last Post: 12-16-2001, 06:21 PM
  5. icon in title bar?
    By Unregistered in forum Windows Programming
    Replies: 3
    Last Post: 12-12-2001, 06:43 PM