Original Post
Hi,
I can''t get those small icons in the windows caption to work! I have tried to make 16*16 pixel icons but, Visual Studio converts them to 32*32, by adding transparent background. Ihe icons look fine in for example file explorer, but i cont get them into that darn window caption!
WNDCLASSEX wc;
wc.cbClsExtra=0;
wc.cbSize=sizeof(WNDCLASSEX);
wc.cbWndExtra=0;
wc.hbrBackground=(HBRUSH)GetStockObject(BLACK_BRUSH);
wc.hCursor=LoadCursor(NULL,IDC_ARROW);
wc.hIcon=LoadIcon(NULL,MAKEINTRESOURCE(IDI_BIG));
wc.hIconSm=LoadIcon(NULL,MAKEINTRESOURCE(IDI_SMALL));
wc.hInstance=hInstance;
wc.lpfnWndProc=WndProc;
wc.lpszClassName="wc";
wc.lpszMenuName=0;
wc.nostyle=CS_HREDRAW|CS_VREDRAW;
Even if i use the big icon in
wc.hIconSm=LoadIcon(NULL,MAKEINTRESOURCE(IDI_SMALL));
it should be stretched?! But I always get the default icon. The application .EXE icon works fine!
Regards,
Mattias