   Windows Icons in Taskbar and Titlebar
  I''m programming a simple card game in Windows XP.  I compile using MS Visual Studio .NET.  I''ve been trying to get my own resource icon into the Taskbar and into the Titlebar.  The icon on the .exe file in the open menu is mine; however neither of the other two are.The taskbar is a page icon, the default for MSVS''s new Icon''s.  The other is a default white square.  Here are some of my WNDCLASSEX contents:winclass.cbSize = sizeof(WNDCLASSEX);winclass.style = CS_DBLCLKS | CS_OWNDC | CS_HREDRAW | CS_VREDRAW;winclass.hInstance =hinstance;winclass.hIcon = LoadIcon(hinstance, MAKEINTRESOURCE(ICON_PYRAMID));winclass.hIconSm = LoadIcon(hinstance, MAKEINTRESOURCE(ICON_PYRAMID));I also call CreateWindowEx with WS_OVERLAPPEDWINDOW | WS_VISIBLE | WS_SYSMENU styles.  Any help is greatly appreciated.   
  a) Check if LoadIcon actually returns something.b) Check by sending WM_SETICON with according parameters in WM_CREATE. ;  Thanks, that seems to have been it.My Resources were a bit off numerically and loadIcon was returning null. 