I have one resource file for several projects. In this resource file I have
several icons. For each project I would like to use different program icon.
I tried to change the icon in RegisterClass call:
wc.style = CS_HREDRAW | CS_VREDRAW;
wc.lpfnWndProc = (WNDPROC) WndProc;
wc.cbClsExtra = 0;
wc.cbWndExtra = 0;
wc.hInstance = hInstance;
wc.hIcon = LoadIcon(hInstance, MAKEINTRESOURCE(IDI_ICON1));
wc.hCursor = 0;
wc.hbrBackground = (HBRUSH) GetStockObject(WHITE_BRUSH);
wc.lpszMenuName = 0;
wc.lpszClassName = szWindowClass;
But this does not work. Program always use the icon which was program icon
in the original project.
Where is defined and how can I change program icon?
Regards
Simon