HICON hIcon = LoadIcon(hInstance,MAKEINTRESOURCE(IDI_ICON1)); if(hIcon) { ImageList_AddIcon(hImageList,hIcon); }