Small icon problem

This is a discussion on Small icon problem within the Windows Programming forums, part of the Platform Specific Boards category; I'm making a program in DEV-C++ and the small icon is not appearing in the title bar of the window. ...

  1. #1
    Registered User
    Join Date
    Jan 2003
    Posts
    35

    Small icon problem

    I'm making a program in DEV-C++ and the small icon is not appearing in the title bar of the window. It appears everywhere else (taskbar, Explorer, desktop), so why doesn't it appear in the window itself? Do I have to do something special?

    I thought all I had to do was attach the icons to the window class like this:

    Code:
       WndClass.hIcon         = LoadIcon(g_hInst, MAKEINTRESOURCE(IDI_GMICOBIG));
    
    ...
    
       WndClass.hIconSm       = LoadIcon(g_hInst, MAKEINTRESOURCE(IDI_GMICOSM));

    Any hints why it's not appearing in the window?

  2. #2
    Unregistered Leeman_s's Avatar
    Join Date
    Oct 2001
    Posts
    753
    First, put up your resource script.

    Also, try putting (HICON) right before the LoadIcon function. That's all I can say without seeing more code.

  3. #3
    Registered User
    Join Date
    Jan 2003
    Posts
    35
    Heyyyy, I got it to work!

    The problem appeared to be in the resource script, although I still don't get why it appeared in all the other places before.

    Thx

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Visual C++ small problem
    By gadu in forum C++ Programming
    Replies: 0
    Last Post: 03-10-2009, 11:45 PM
  2. Small problem with this array...
    By Merholtz in forum C Programming
    Replies: 7
    Last Post: 11-03-2008, 04:16 PM
  3. Help with a small problem (beginner)
    By piffo in forum C Programming
    Replies: 13
    Last Post: 09-29-2008, 05:37 PM
  4. Problem with taskbar icon
    By maxorator in forum Windows Programming
    Replies: 2
    Last Post: 05-16-2006, 02:55 AM
  5. Small problem I need help with.
    By ajdspud in forum C++ Programming
    Replies: 2
    Last Post: 11-13-2005, 05:43 PM

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