Button with Icon on it
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
hi well, I am trying to do the following: I put a button on the dialog and associated it with exe file that is: void CMyView::CMyButton() { CIniReader ini; ini.setINIFileName("./gm.ini"); CString ttl; ttl = ini.getKeyValue("total", "path"); WinExec(ttl,SW_SHOWNORMAL); // change the path in .ini file //WinExec("D:\\Misc\\StarCraft\\StarCraft.exe", SW_SHOWNORMAL); } I have drawn the icon on the button (found the article for Button Image here). It works. but, how to make the program so that when I change the .exe to execute in ini file, the icon on the button take the icon of exe