Pretty new to Windows programming. Trying to display icon in title bar on Non-Dialog window.
wincl.hIconSm = (HICON)LoadImage(hThisInstance, "mjsconvert2.ico", IMAGE_ICON, 16, 16, LR_LOADFROMFILE);
//But this doesn't
wincl.hIconSm = (HICON)LoadImage(hThisInstance, MAKEINTRESOURCE(IDI_ICO2), IMAGE_ICON, 16, 16, LR_DEFAULTCOLOR);
I can get icon to display with first example, but this requires external icon file.
//Neither does this
wincl.hIconSm = LoadIcon(hThisInstance, MAKEINTRESOURCE(IDI_ICO2));
Can somebody please explain how to do this and why other examples do not work.
Using Dev-cpp 184.108.40.206 with MingW 3.3.1
All Examples compile just fine.