title: Win32 CreateWindowEx() window icon not showing properly
body: <p>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: <img src="https://lh5.googleusercontent.com/-BjKJGPbgO80/ThIlaUvZubI/AAAAAAAAAGM/NySiWQrLkzo/s128/bad_icon.png" alt="default Windows icon">. I set both the <code>hIcon</code> and the <code>hIconSm</code> fields in the <code>WNDCLASSEX</code> to the value returned from <code>::LoadIcon(hInstance, IDI_APPLICATION)</code> (not NULL).</p>
  
  <p>The .ico file itself was made out of a .png which I genereated through <a href="http://converticon.com" rel="nofollow">http://converticon.com</a> to 16x16, 32x32 and 96x96 (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!</p>