Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6104623
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T13:51:47+00:00 2026-05-23T13:51:47+00:00

I create my window using CreateWindowEx, but I only get an icon in the

  • 0

I create my window using CreateWindowEx, but I only get an icon in the task bar; both the window’s title bar and the icon that shows when I Alt+Tab show this type of dummy icon: default Windows icon. I set both the hIcon and the hIconSm fields in the WNDCLASSEX to the value returned from ::LoadIcon(hInstance, IDI_APPLICATION) (not NULL).

The .ico file itself was made out of a .png which I genereated through http://converticon.com to 16×16, 32×32 and 96×96 (what are the recommended sizes btw?). Could it be that I’m using the wrong sizes or color depth? If so, why does it work in the task bar (different size)? Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T13:51:48+00:00Added an answer on May 23, 2026 at 1:51 pm

    The icon must be defined as a resource somewhere. In your resource header there should be a line like this:

    #define IDI_MYICON 1000
    

    Then in your call to LoadIcon() it should be something like:

    wc.hIcon = LoadIcon(hinstance, MAKEINTRESOURCE(IDI_MYICON));
    

    If you’re using Visual Studio it’s pretty easy to add resources. Just right click Resources in the solution explorer.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to create a window that will be the main window and that
I have spent some time trying to create a child window of an existing
I've been playing around with the Windows api for uni, but I cant get
I want to create a window and show some image display (like animation based
hello I have the following win32 program, and I have an EDITTEXT control that
With C#, I was easily able to get the effect I wanted: However, I'm
I've been trying to get a basic program going with the windows API (WinMain
I am creating a basic GUI with the Windows API and I have run
I am creating a basic GUI with the Windows API and I have run
i have a layered form with the WS_EX_LAYERED extended style set. i've created a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.