Hello all,
I have SDI Application had made using MFC Application wizard, and I could
able to change the icon of the application executable file through add adding
a resource icon and replace it with the old one that came with the wizard,
But I couldn't able to change the main window icon to be the same
I tried that code inside “PreCreateWin dow†but it fails
HICON hIcon=LoadIcon( AfxGetInstanceH andle(),MAKEINT RESOURCE(IDR_MA INFRAME));
this->SetIcon(hIcon, false);
and another try
HICON ico=AfxGetApp()->LoadIconW(IDR_ MAINFRAME);
this->SetIcon(hIcon, false);
and also fails
Any help in doing that?
I have SDI Application had made using MFC Application wizard, and I could
able to change the icon of the application executable file through add adding
a resource icon and replace it with the old one that came with the wizard,
But I couldn't able to change the main window icon to be the same
I tried that code inside “PreCreateWin dow†but it fails
HICON hIcon=LoadIcon( AfxGetInstanceH andle(),MAKEINT RESOURCE(IDR_MA INFRAME));
this->SetIcon(hIcon, false);
and another try
HICON ico=AfxGetApp()->LoadIconW(IDR_ MAINFRAME);
this->SetIcon(hIcon, false);
and also fails
Any help in doing that?