Ok so i was able to successfuly make my own window and so now im trying to load my own icon to the window so that it will appear in upper left corner but I can't figure out how to do it I have tried this
That didnt help any when i did what that tutorial said it just kept underlining my IDI_MyIcon in red no matter what i did, I added #include "resource.h" and everything nothing i did worked
If you want to load your icon from a file: wc.hIcon = (HICON) LoadImage(NULL, L"icon.ico", IMAGE_ICON, 0, 0, LR_LOADFROMFILE);
Personally I prefer to just create a resource and load from the resource so you don't have to worry where the icon file is located when the program runs.